Jump to content

Modal box with link


Recommended Posts

  • 3 weeks later...
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
Link to comment
Share on other sites

  • 4 weeks later...

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...