Home » JQuery » JQuery click event not working

JQuery click event not working

I loaded the jquery library files properly.But it click event does not trigger the function.No errors display in the firebug console.This is a common issue of most users.Here the solutions for this.

1-First check your click event is placed in the $(document).ready function.If it out side of the $(document).ready function,keep it in there.

2-Second thing write the JQuery live event like this.

[stextbox id=”info”]When we use live function, JQuery starts keeping track of all the changes made in the DOM, that includes the new data/elements from the other request(ajax) or removal of any element.
It’s basic JavaScript to wait until the DOM is ready before you try to use an element.[/stextbox]

3-Try to use jquery bind event.

Extra:
Check,

  • -the relevant page contents is loaded or not.
  • -clear all cache in the browser.
  • -java script is enabled in the browser.
Tags

Similar posts