Please Login to Continue

Free Software Development Articles.Email List
How to Draw Realistic Photos (E-Book)

How to Draw Realistic Photos (E-Book)

$1

Why Software Development Need Ethics to Succeed (E-Book)

Why Software Development Need Ethics to Succeed (E-Book)

$1

How to Make a Social Media Website in Easy Steps

How to Make a Social Media Website in Easy Steps

$1

JavaScript onclick() posting twice (Bug)

How to fix jQuery onclick function() posting back twice

I was working on a project that needed every thumbnail clicked to emit a click event to a javascript file, but the problem was that one of the click events was getting attached twice to the DOM. 

Solution:

How I solved this was to type return false in every click function that was getting attached twice to the DOM. Problem solved.
Technology published
Buy Me Coffee

Was this page helpful?

Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful..



© 2020 - ErnesTech - Privacy