Thursday, 25 July 2013

replace special character from string using javascript


<script>
var str1 = "a,d,k";
str1 = str1.replace (/,/g, "");
alert(str1);

</script>

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...