Hi,
I have the html given below:
<ul id="thumbsPhotos">
<li src="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatePhoto (this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" src=""><img src="" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" src=""><img src="" width="56" height="56"></li>
</ul>
Now, I want to replace all the "src" in <li> tags not in <img> tags using InnerHTML. I mean my output will be this:
<ul id="thumbsPhotos">
<li title="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatePhoto(this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" title=""><img src="" width="56" height="56"></li>
<li onclick="updatePhoto(this.title)" title=""><img src="" width="56" height="56"></li>
</ul>