Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

make price comma jquery

 function commaSeparateNumber(val){
    while (/(d+)(d{3})/.test(val.toString())){
      val = val.toString().replace(/(d+)(d{3})/, '$1'+','+'$2');
    }
    return val;
  }
 
PREVIOUS NEXT
Tagged: #price #comma #jquery
ADD COMMENT
Topic
Name
1+6 =