0 votes
337 views
in jQuery by

Actually, i know button clicked event in jQuery. But, How do you hide an image when cliked on button using jQuery?

$("#myButton").click(function(){
    alert("welcome to jQuery");
});

1 Answer

0 votes
by (4.4k points)

This is very simple to hide image. You use hide() method to hide image in jquery.

See the following example:-

$("#myButton").click(function(){
    $('imageIdorName').hide();
});

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...