jQuery click function not working

The click event of jQuery is not working may be you are using old version of jQuery (new version). Or you can using this code before the jQuery library. Check you console the must be listed there, Click F12 to open console panel. Check you are using correct slector to bind the click event. The right syntax of click event is:

 

$('#selector').click(function(){
	#do your code
});

Read about click event to understand the behavior.

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes0
No0
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.