I need to reask my old question, I probably shouldn't have asked it at 1am: P
It seems that some attributes were not found using the jquery attribute selector:
$("*[some=value]");
So far it seems that I cannot use the action action attribute and the img src attribute. Is there a list somewhere of the attributes that do not work, so I can write special selectors for them?
Thanks again!
Edit: No one seems to think that some selectors do not work as expected. Take a look at this example: There is a form on this site (which has jquery 1.3 for it for firebugging) that looks like this:
<form style="display: inline;" method="get" action="list">
(around the Search Current Downloads drop-down list). If you open Firebug and try this selector:
$("form[action=list]");
You cannot select a form. There is nothing special about the action attribute. The same applies to the src logo image on this page:
<img alt="Logo" src="/p/aost/logo?logo_id=1238551994"/>
A selector that does not work:
$("img[src=/p/aost/logo?logo_id=1238551994");
Of course, I can do wildcard matches, this is not what I want.
jquery css-selectors css3 attributes
mkoryak
source share