Jquery: replace character of select drop down values with other
below code snippet can be used to replace "-" of select drop down values with ",". JQuery('#sel_test option:contains ("-")).each function(index,option) { var sval = JQuery(option).val().replace(/\-/g,","); JQuery(option).val(sval); JQuery(option).html(sval); }