Jump to content

Modal box with link

Recommended Posts

On 6/10/2018 at 11:19 PM, dsonesuk said:

Just give the anchor link the same id.

IS 'href'  the new 'id' now? I know new trends change often, but somehow using 'href' instead of 'id' just isn't going to be practical in my opinion.

Edited by dsonesuk

Share this post

Link to post
Share on other sites

You are missing the # symbol in ahead of the id name followed by the data-toggle attribute.

it should be <a href="#myModal" data-toggle="modal>Your Link Text Here</a>.

data-toggle="modal" opens the modal window.

data-target or href="#myModal" points to the id of the modal i.e. the id of the parent <div> of the model.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...