Here are the strings like this
var a = ".fontlist-1 .fontlist-2";
var b = ".fontlist-1 .fontlist-3";
var c = ".fontlist-1 .fontlist-4";
What I need is how can I use the split() method and get only the second word in the string. For the above strings, I need only the second words( ie., .fontlist-2, .fontlist-3, .fontlist-4). How can I split and get that word? If you need any more information, I can give you.
One more thing. At some situation, If I have string like this.
var a = ".fontlist-1"
Your code must give me the .fontlist-1 word then. Will it be possible?
Could anyone guide me? Thanks!