jQuery wildcard selectors
Posted 5 August, 2008on:
UPDATE: The below method no longer works! Go here to see a tested, working method: http://ropox.net/archives/1081
This is the first tutorial on my blog. We’re going to start with something simple and it’s only useful if you use jQuery.
When I started using jQuery I found it hard to find information on using wildcards when selecting DOM elements.
After a while you get to understand that jQuery allows the use of regular expressions in a lot of places, I.E. when selecting like this:
So with this in mind, you can use \\S* to make wildcard selections, I.E.:
8 Responses to "jQuery wildcard selectors"
Comments are closed.