I have the below HTML structure.
<td id="123">
...
<td>
<ul>
<li class"open"><img src="path" /></li>
...
</ul>
</td>
</tr>
<td id="125">
...
I want to do this:
select
li.openof #123 and change the class toli.pendingselect the
srcattribute of the#123>li.openimage and change it to "newpath"
I tried to select them by:
$('#123>li.open img').attr("src");
...to add the new src
$('#123>li.open').removeClass("open").addClass("pending");
How can I fix this problem?
#123 > li.openidvalues.IDsshould always start with a letter.#123 li.open?#123>li.openand#123 > li.openare the same.