Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
78
rated 0 times [  82] [ 4]  / answers: 1 / hits: 44067  / 13 Years ago, fri, july 29, 2011, 12:00:00
Mon 25-Jul-2011


I want to delete the first word Mon with javascript jQuery.
How can i do this ?


More From » jquery

 Answers
74

If you don't want to split the string (faster, less memory consumed), you can use indexOf() with substr():



var original = Mon 25-Jul-2011;
var result = original.substr(original.indexOf( ) + 1);

[#90930] Thursday, July 28, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emanir

Total Points: 151
Total Questions: 90
Total Answers: 105

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;