I currently have something like this:
$(".jtable tbody td").not(".DeleteLicense").hover(
How can I use delegate with this? Something like
$("#resultContainer,#approvalContainer,#createNewContainer").delegate(".jtable tbody td....
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
:not()selector to move the negation in to your selector.Note that the jQuery documentation recommends using the
.not()function rather than the:not()selector in most cases, but I’m not sure if it is possible in this case.If you’re willing to use another approach, you may find that you could use the
.jtable tbody tdselector in your call todelegate, and then useif(!$(this).is(".DeleteLicense")) { ... }in your event handler to only process elements that meet your criteria.