hi i have below situation:
Copy code
- <div id="1">
- <img class="close">
- </div>
- <div id="2">
- <img class="close">
- </div>
like this multiple divs which have same image.
now i want to write a jquery function, the divs which has these image, on clicking of the image, divs should hide.
i want generalize function.. $(this) wont work.so what should i give here..
Copy code
- $(".close").click(function() {
- $(this).hide();
- });