Maybe I am missing something, but they seem similar. If you use for example…
a[alt~="thumb"]
or…
a[alt*="thumb"]
What can I narrow my selection down to differently? I am at the understanding that ~ gives you a partial match in the quotes while the * gives you a partial match. I am going to fiddle with the code a little, but since I could not find a question on the subject here, thought it would make a good topic either way.
From the JQuery help (which supports the standard selectors):
Basically the selector
~=only matches if the value is found surrounded by white space. The selector*=matches if the value is found anywhere.div[alt~='head']would match only the second div, butdiv[alt*='head']would match both.