I want to change the behaviour on a "a href" link but only on ones that have a custom made attribute called open
e.g.
<a href="#" action="open">Link 1</a>
<a href="http://www.google.co.uk/"></a>
I want to change only the behaviour of the first one. So I do a:
jQuery('a[action|=open]').live('click', function(evt) {
do something;
});
but nothing happens. The selector selects all the specified elements but the click event is not exectued. What am I doing wrong?