hide/show a image in jquery

前端 未结 7 1462
逝去的感伤
逝去的感伤 2021-02-14 16:57

How to show/hide the image on clicking the hyperlink?



        
7条回答
  •  失恋的感觉
    2021-02-14 17:47

    What image do you want to hide? Assuming all images, the following should work:

    $("img").hide();
    

    Otherwise, using selectors, you could find all images that are child elements of the containing div, and hide those.

    However, i strongly recommend you read the Jquery docs, you could have figured it out yourself: http://docs.jquery.com/Main_Page

提交回复
热议问题