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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -