Unable to access data inside of the bootstrap modal code block #33809
Unanswered
cavellerson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Ids need to be unique. You reuse |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to access the post_id that is given from the beginning of the code, when i loop over an array of objects. I am posting post.post_id at every point and even inside the modal. The problem: the post_id shown is correct with the given post UNTIL the post.post_id is inside the modal... it then displays the most recent post's post.post_id instead of the one that is correct... here's my code: is there some reason why a bootstrap modal would change the value of post.post_id? I can't seem to find the mistake I am making...
[this is an illustration of the problem i'm having, the post ids are all good until it hits the modal] https://i.stack.imgur.com/zugIX.png
` <%- include ('./partials/header.ejs') %>
Beta Was this translation helpful? Give feedback.
All reactions