Related Post:
- Hide all elements of HTML form using jQuery
- Set focus on first textbox using jQuery
- How to check element visible or hidden using jQuery
To show only first image within div where multiple images are placed.
$("div.List").each(function () {
$("img :not(:first)", this).hide();
});
If you have placed any list (ul->li) element, then you can use below code to hide other items.$("div.List").each(function () {
$("ul li:not(:first)", this).hide();
});
Feel free to contact me for any help related to jQuery, I will gladly help you.

No comments:
Post a Comment