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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -