Adsense
Popular Posts
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- Install APXS in Redhat Linux
- super(props) in React
- Set Windows path command line
- MySQL date created and date modified
- JavaScript, remove trailing insignificant zeros after toFixed function
- React: connect(mapStateToProps, mapDispatchToProps)
- MySQLcase When Then END in comparison
- PHP function for input sanitizing
Thursday, December 24, 2015
jQuery click button events firing multiple times
I has jquery click event
$('.addRow_section').live('click', function(){
When the button is clicked, it is fired multiple times.
This is due to that the particular event is bound multiple times to the same element.
To fix this add die function:
$('.addRow_section').die("click");
$('.addRow_section').live('click', function(){
Reference:
http://stackoverflow.com/questions/14969960/jquery-click-events-firing-multiple-times
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment