jQuery On click not working

The On 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 On click event. The right syntax of On click event is:

$(document).on('click', '#selector', function(){
	#do your code

Read about on 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.
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.