I am trying to get and pass a rel attr to tell which tab to select in a nyro pop up function.
function guestlist (selector) {
$(selector).nyroModal({
hideContent: newHide,
endShowContent: function () {
var getNumbers = $(selector).attr('rel');
alert(getNumbers);
specialwater();
tabs('#manage-guestlist',getNumbers);
}
});
}
guestlist('a.see-all');
How do I get that number into the callback endShowContent?
Update: This is being used on different links with different rel values
HTML These are 2 links in the DOM I need to get the rel values on the above click function which nyro handles.
<a href="/events/manage_guestlist" class="see-all" rel="1">See All</a>
<a href="/events/manage_guestlist" class="see-all" rel="0">See All</a>