How to cut out the jquery middle word?

div.intro .intro-1 .intro-active there is such a line, because it is necessary to choose intro-1
July 9th 19 at 13:15
3 answers
July 9th 19 at 13:17
console.log('div.intro .intro-1 .intro-active'.split(' ')[1].substr(1));
July 9th 19 at 13:19
First split the string by a space, then to remove the necessary, then glue back.
July 9th 19 at 13:21
Spaces can go more than one, it is necessary to consider if this is the case. If the split does not take into account this now, we need the regular season to split

Find more questions by tags jQuery