jeudi 25 août 2016

find elements which id contains two substrings

I have an HTML table and I need to change the CSS style to all de <td> whose "id" contains the substring "_A_189" and the substring "_B_V_852" using jquery. The substrings could be in any position of the string.

I use this, but it doen't work:

$('id:contains("_A_189"):contains("_B_V_852")').css(style);

Aucun commentaire:

Enregistrer un commentaire