Answer the question
In order to leave comments, you need to log in
How can I create a div that, when written into the markup, inserts certain code?
<div id="page">
<div class="menu">
<button class="btn" type="button" id="modal_open">Заказать звонок</button>
</div>
<div class="modal-overlay" id="modal_window"
aria-hidden="true" role="dialog"
aria-labelledby="modal_title">
<div class="modal-content" id="modal_holder" role="document">
<h1 id="modal_title">Заказать звонок</h1>
<form>
<label for="name">Имя:</label>
<input type="text" id="name" class="input" placeholder="Ваше имя" />
<label for="tell">Номер телефона:</label>
<input type="tell" id="email" class="input" placeholder="Ваш номер телефона" />
<input type="submit" class='btn' value="Отправить" />
</form>
<button class="btn-close" id="modal_close" type="button" aria-label="close">
×
</button>
</div> <!-- end .modal-content -->
</div> <!-- end .modal-overlay -->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question