Problem setting up an event for links
Request for help!
I want to react to all anchor tags with a particular id pattern:
-
<a href="#" id="link-12323">foo</a>
<a href="#" id="link-45454">bar</a>
// js-land
var LINK_ID_PATTERN="link-";
$(LINK_ID_PATTERN).dblclick(function() {...});
The above doesn't catch it. I tried adding a wildcard too. Any suggestions?
Thanks