Only img change inside li children
Say my code looks like this:
<ul>
<li><img /></li>
<li>
<ul>
<li><img /></li>
</ul>
</li>
</ul>
I'm trying to set the default size for the first tag img
, but it doesn't affect the second. everything I do affects the other. I have currently tried:
$('ul#gallery > li').find('img').css('width','650px');
$('ul#gallery > li img').css('width','650px');
among others, but nothing works.
+2
a source to share