There is also this selector:
var el = $('#slider .navigation').find('a[href$="' + data.id + '"]').get(0);
I am sure if you do:
var el = $('.navigation').find('a[href$="' + data.id + '"]').get(0);
It will find anything with the class of navigation and do it.
|