In this tutorial, we will discuss about how to hide hyperlink after clicking it using jQuery.
In this tutorial, we will discuss about how to hide hyperlink after clicking it using jQuery.In this tutorial, we will discuss about how to hide hyperlink after clicking it using jQuery. In the below example , a hyperlink "Click here to hide this link" is included in the web page. When we click on it ,it will disappear.
jqHidelink . html
<!DOCTYPE html> |
Description of the program:
The below code hide the paragraphs :
$("p").hide();
The given below code is responsible for hiding link after clicking :
$("a").click(function () {
$(this).hide();
return true;
});
OUTPUT :
After click ,it will disappear from browser.