I have few link elements related to a certain class and assigned row attributes to it and I'm trying to trigger click event based on the attribute value.
<a class=manage_edit_nb nb_id=1></a> | <a class=manage_del_nb nb_id=1></a>
<a class=manage_edit_nb nb_id=2></a> | <a class=manage_del_nb nb_id=2></a>
<a class=manage_edit_nb nb_id=3></a> | <a class=manage_del_nb nb_id=3></a>...
Is it possible to trigger click or any event for a certain attribute value for a certain class?
If I try something similar to
$('a[nb_id = 1]').trigger('click');
it triggers click event for all elements irrespective of class but I failed to figure out how to put class reference in there!