Maverick Maverick - 1 year ago 90
Javascript Question

Select everything between not starting with but ending with

So I am trying to select some names with JS but I can figure out how. I found 3 solution here but still could not get it to work:

I would like to select word that DOESN'T start with

and HAS to end with

Here is what I have:

Also tried:


.test { }

test { } <--- Select this test

Answer Source


See for a live demo with further explanation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download