Sunday, June 22, 2014

Remove all commas from string in jquery

 var income = $("#txtincome").val(); //12,000
 income = income.replace(/\,/g, '');//12000

No comments:

Post a Comment