Does anyone know how can I cut the 1st char from the string in jquery?
Example: If I have string as following:
var test = '3265';
How can I cut only the 1st char so that the output will be '3' instead?
Why jQuery?? Just use plain old javascript:
var first = test.substring(0, 1)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With