Thursday, April 3, 2014

Replace all commas in a string with JQuery/Javascript

 var income = $("#txtincome").val();
        if (income == "") {

        }
        else {
            income = income.replace(",", "")
            alert(income);
        }

No comments:

Post a Comment