Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 413703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:12:37+00:00 2026-05-12T18:12:37+00:00

I am trying to get and pass a rel attr to tell which tab

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:12:37+00:00Added an answer on May 12, 2026 at 6:12 pm

    Is this right?

    • If the user clicks either link, you want to show it in a modal window with the appropriate tab selected (specified by the rel attribute).
    • When the page loads open a modal window showing /events/manage_guestlist, with the first tab selected (tab 0).

    If so, I’d do it like this:

    // Pass the tab index in to this function
    function showGuestList(tabIndex) {
        $('a.see-all').nyroModalManual({
            hideContent: newHide,
            endShowContent: function() {
                specialwater(); 
                tabs('#manage-guestlist', tabIndex);
            }
        });
    }
    
    // On page load, nothing's been selected, so show the default tab
    $(document).ready(function() { 
        showGuestList(0);
    });
    
    // Attach a click handler to our links that passes the value of 
    // the element's rel attribute
    $('a.see-all').click(function {
        showGuestList($(this).attr('rel'));
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to populate select with sql results using WebMethods. I can get and pass
I'm trying to get php to automatically pass the session ID via url, even
I'm trying to get an application to pass the Windows 7 Software Logo Toolkit
I am trying to get the value user selected from search prompt and pass
In my GWT project, I'm trying to get it so two DialogBoxes can pass
I'm trying to pass value by using EL expression in get request parameter, but
I'm trying to pass lists and maps as GET parameters, and I'm wondering if
I'm trying to pass a link_to block with html but can't get it. I
I am trying pass class as value in hashmap. I need to get the
So i am trying get 2 div-containers which both should contain centered text (Both

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.