$("#myForm :input").each(function () { data[$(this).attr('id')] = $(this).val().replace(/,/gi, ''); });