Attributes that cannot be selected using the jquery attribute selector

I automatically generate a selector and I ran into a problem. Some attribute selectors do not work. for example, on this page, the following selector does not work properly:

$("img[src=/p/aost/logo?logo_id=1238551994]"); 

I also noticed that I cannot select <form> using the value of the action attribute.

Question: Is there a complete list somewhere of the attributes that do not work in jquery selectors.

Not a question: I am not asking how to select elements with these attributes using jquery functions.

Thanks.

+1
jquery css-selectors css3
source share
1 answer
 $("img[src='/p/aost/logo?logo_id=1238551994']"); 

To quote a string when you have non-alphanumeric characters, I think you have the same problem in the action url.

+4
source share

All Articles