Adsense
Popular Posts
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