Kanishka Kanishka -4 years ago 149
jQuery Question

Java script Trim with charactor

I have a string like this

var str=",test,test1,test2,teset4"

How can i Remove the ',' infront of the string.
So the out put will be something like this


Answer Source

you can try this:


var str=",test,test1,test2,teset4"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download