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 18, 2014
jQuery, combine different functions together
For example I have input button
<input type='button' class='previewButton' value='preview' />
I have general function for input method
$resultTable.find('input').change(function() {
}
But change is not applied to button, as button reacts to click. To call change function for button:
$resultTable.find('input.previewButton').click(function(event) {
$(this).change();
}
Labels:
jQuery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment