1.

Explain Click() Method In Jquery?

Answer»

<P>The click() method ATTACHES an event handler function to an HTML element. The function is executed when the user CLICKS on the HTML element. The following example SAYS: When a click event fires on a element; hide the current element:

Example: $("p").click(function(){ $(this).hide(); });

The click() method attaches an event handler function to an HTML element. The function is executed when the user clicks on the HTML element. The following example says: When a click event fires on a element; hide the current element:

Example: $("p").click(function(){ $(this).hide(); });



Discussion

No Comment Found