Kumaresan Drupal Developer at Chennai
Please follow this blog if u feel the blog content is useful to you
Monday, December 12, 2011
Remove last character of a string in javascript
//Input : "Kumar,Raj,Ram,"
//Removes the last charecter comma from the string
var ins = 'Kumar,Raj,Ram,';
ins = ins.substring(0, ins.length-1);
alert(ins);
//Output = "Kumar,Raj,Ram"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment