C
C
choodo2018-06-06 09:59:39
Bootstrap
choodo, 2018-06-06 09:59:39

How to send a link so that a modal window is activated when clicked?

<a href="#" class="btn btn--sm btn--purple" data-toggle="modal" data-target="#modalReasons">Подробнее</a>

Clicking on Details brings up a modal window. How to pass a link to it without editing the page code so that this modal window immediately opens when opened?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2018-06-06
@iiiBird

If we are talking about the fact that this link should lead to another page where this modal window will open, then there is no way without
editing the page code. Bootstrap just works on these data attributes. you need to remove
And then make a link, let's say with an anchor - and by this anchor on another page open this modal window through
$('#myModal').modal('show')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question