javascript - Chaining 3 jQuery selectors for an event -


this question has answer here:

i have following bind same event 3 elements. there way have selectors in 1 line , "or" in selector?

$('.fundload').keyup(queryrequest); $('.fundname').keyup(queryrequest); $('.companyname').keyup(queryrequest); 

yes, use comma:

$('.fundload, .fundname, .companyname').keyup(queryrequest); 

jquery uses standard css selectors basis it's selector specification.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -