68
rated 0 times
[
75]
[
7]
/ answers: 1 / hits: 29979
/ 11 Years ago, sat, june 15, 2013, 12:00:00
How can we get the last word from a string using JavaScript / jQuery?
In the following scenario the last word is Collar. The words are separated by -.
Closed-Flat-Knit-Collar
Flat-Woven-Collar
Fabric-Collar
Fabric-Closed-Flat-Knit-Collar
More From » jquery