I\'ve done some experimenting, but can\'t seem to successfully bind one event handler to multiple elements using jQuery. Here\'s what I\'ve tried:
$(\'select
To clarify let us extract the selector
string into a variable:
var selector = ['selector1', 'selector2'];
the above is similar to what you have written.
var selector = 'selector1, selector2';
this is the correct way to use the interface. Note that it is a comma separated list of selector in a single string.
$('selector1, selector2').bind(...)