Adsense
Popular Posts
- Install APXS in Redhat Linux
- MySQL workbench -"Could not decrypt password cache"
- Transfer modules between sites
- JavaScript, remove trailing insignificant zeros after toFixed function
- Set Windows path command line
- datatable order by nunmeric
- MySQL date created and date modified
- super(props) in React
- PHP, dump varailbes in a format way
- React: connect(mapStateToProps, mapDispatchToProps)
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