Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
links inside the modal that use data-dismiss="modal" don't go to their destination #7192
If I have this bit of code to generate a modal with a link inside it:
when I click "Click me", it'll dismiss the modal, but it won't end up going to Google.
Is there any way to have a link both dismiss the modal and go to the target in the href? I also created a JSFiddle here that sort of demonstrates it (but given that links to Google don't go any way, it's a little hard to tell): http://jsfiddle.net/waynn/GDL9U/2/
Just stumbled upon this. I am doing something similar although I want to open the link in a new window of the browser and close the modal on click. Note that the modal is a remote page and loaded with ajax. I am sure you could modify the below to fit your needs.
then an example link inside the modal would be like this ...