Q:

How to remove inconsistence entries which performing click event

While  clicking on the button, due to slow speed, I have clicked it multiple times. What the problem is, I am getting multiple records in the db instead of getting single record. Can anyone tell how to avoid multiple instances to maintain data consistency.

A:

Disable the button in javascript after the first click

