How can I get 4 letters from the left of string.
I use (left function) and (right function) In VBScript but What Can I use in JavaScript
Printable View
How can I get 4 letters from the left of string.
I use (left function) and (right function) In VBScript but What Can I use in JavaScript
I cant remember the exact syntax, but you would use substring
something to the effect of
var a = stringvariable.substring(startpostion(4),length from startingposition);
or soemthing like that. Is been a while
Code:stringName.substring(0,4)
ahh..I was close enough...:p
I like your way of thinking - that's my motto too "Near enough is good enough" :D