javascript - Pulling value from form, then converting text to integer -
i've been trying use jquery pull variable form (as string) , convert number have added other variables. instead, nan displayed.
<input type="text" name="donation" id="donation" value="0"> var donation = parseint(form.find('input[text=donation]'), 10);
used jquery in past, still new aspects. appreciated.
perhaps because #donaton
should #donation
?
Comments
Post a Comment