...

View Full Version : How do I remove the first character of a string?



Mike1985
09-30-2011, 04:16 PM
So say if my string was..



a = "Hello";
alert(a);


How do I get it to say;



alert("ello");


So how do I take off the 'H' in this example..

xelawho
09-30-2011, 04:32 PM
a = "Hello";
a=a.slice(1)
alert(a);



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum