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);
    }

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms