I am try to combine the statements below so that it reads like “if either of these events happen, perform the function”. I know this is easy, but it’s something that I haven’t done and that I need to do.
Can you tweak this?
$("#FirstName").keyup(function() {
checkForm();
});
$("#LastName").keyup(function() {
checkForm();
});
$('#FirstName, #LastName')should work.The comma works as a separator, so
Here’s the documentation: http://api.jquery.com/multiple-selector/