Friday, August 9, 2013

Jquery. Add id like img name

Jquery. Add id like img name

I've got a problem. I want to add the ID on li, like a name img.
<ul class="list">
<li>
<img width="15" height="60" src="http://***/fhdjsfhjhsdjfhsfsfj_254545.jpg">
</li>
result:
<ul class="list">
<li id="fhdjsfhjhsdjfhsfsfj">
<img width="15" height="60" src="http://***/fhdjsfhjhsdjfhsfsfj_254545.jpg">
</li>

No comments:

Post a Comment