hide/show a image in jquery

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

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



        
7条回答
  •  渐次进展
    2021-02-14 17:49

    Use the .css() jQuery manipulators, or better yet just call .show()/.hide() on the image once you've obtained a handle to it (e.g. $('#img' + id)).

    BTW, you should not write javascript handlers with the "javascript:" prefix.

提交回复
热议问题