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

  • Home
  • SEARCH
  • 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 8302349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:16:01+00:00 2026-06-08T17:16:01+00:00

I am trying to generate unique IDs for each modal, as I will be

  • 0

I am trying to generate unique IDs for each modal, as I will be loading in an address specific map to each modal. My issue is that when I click the link:

<a data-toggle="modal" href="#myModal_<? echo $meeting['ID'] ?>" ><? echo $meeting['Address'].", ".$meeting['City'] ?></a> 

it tries to take me to mypage.php/#myModal_8 (or whatever the given ID is, instead of pulling up that specific modal. The modals work great is I don’t have the ID attached, but they won’t load dynamic content that way.

 <a data-toggle="modal" href="#myModal_<? echo $meeting['ID'] ?>" ><? echo $meeting['Address'].", ".$meeting['City'] ?></a>
        </p>
        <div class="modal hide" id="#myModal_<? echo $meeting['ID'] ?>">
            <div class="modal-body">
                <? echo $meeting['Address'] ?>
            </div>
            <div class="modal-footer">
                <a href="#" class="btn" data-dismiss="modal">Close</a>
            </div>
        </div>

Any help on this would be much appreciated. Thank you!

  • 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-06-08T17:16:03+00:00Added an answer on June 8, 2026 at 5:16 pm

    It’s all about the ID you are giving to the modal : id="#myModal_<? echo $meeting['ID'] ?>"

    The # is only needed for the jQuery selector, not the ID. Which would give :

     <div class="modal hide" id="myModal_<? echo $meeting['ID'] ?>">
    

    Further more, you should open your php tags with <?php for the reasons described here : Are PHP short tags acceptable to use?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying (as a self-learning exercise) to create a Clojure macro that will generate
I am trying to generate unique values in c# with the help of DateTime
I'm trying to generate 16 000 000 unique random numbers (10-digits: range 1 000
I am trying to understand crc32 to generate the unique url for web page.
I'm trying to generate a report of the activities that users have done within
I'm trying to generate a sequence table in MySQL, so that I can get
I want to auto-generate a unique 8-10 character ID string that includes a checksum
Im trying to generate n unique random numbers between 1 and max I tried
I am trying to generate a unique identifier of a fixed length such as
i'm trying to generate a unique id using this code: $RCode = md5(uniqid(rand(), true));

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.