I am trying to convert string into integer using jquery but it throwing NumberFormatException. How to fix it?
<% int ai= Integer.parseInt(beginningBalance.get(i));%>
Your code is not of javascript.
<% int ai= Integer.parseInt(beginningBalance.get(i));%>
it looks like ASP.net if you want pure javascript or jquery then answer is same as provide above.
var a = parseInt("10");
so you can change your code in javascript like this:
var a = parseInt( '<% beginningBalance.get(i); %>');
+strturnsstrinto a number