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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -