Click Event using JQUERYClick event is created when we click Mouse button over the element
Here is the syntax
We can trigger code by using click event over a button or over some text. Here is the code .
Click event on ClassWe usually assign one class name to a group of element. For example if there are 10 records ( or multiple records ) displayed then each record will have its own edit button. All edit buttons will have one common class name say class=edit_class and all will have one unique id. When user click any one of the 10 edit button the click function has to fire. Here we can't write click event 10 times for each button , so we will write a single click event for the class.
Once the event is fired then we can find out which button is clicked by the user.
Click event for a set of radio buttonsHere our radio buttons have common name ( name=options)
Other event along with clickWe can trigger common code to execute by adding other events to click event. We may want to execute same code for single click or double click event.
How to identify which event has triggered ?
This article is written by plus2net.com team.