javascript - how to convert string into integer in jquery..? -


i trying convert string integer using jquery throwing numberformatexception. how fix it?

<% int ai= integer.parseint(beginningbalance.get(i));%> 

the parseint() function of js parses string , returns integer.

ex:

var = parseint("10"); 

Comments