javascript - What is data-toggle="modal" used for? -
this question has reply here:
the data-toggle attributes in twitter bootstrap 8 answersi have button code created it. here button code:
<button class="demo btn btn-primary" data-toggle="modal" href="#long" onclick="javascript:add();"><i class="icon-plus-sign icon-white"></i> add together employee</button>
i've edit function related button (send new info button, , phone call in function), nil happened. tried delete data-toggle="modal"
, pop didn't show. so, wonder, data-toggle="modal"
utilize for?
i thought here link modal:
<script src="js/bootstrap-modalmanager.js"></script> <script src="js/bootstrap-modal.js"></script>
can explain me data-toggle="modal"
? give thanks you.
from bootstrap docs
<!--activate modal without writing javascript. set data-toggle="modal" on controller element, button, along data-target="#foo" or href="#foo" target specific modal toggle.--> <button type="button" data-toggle="modal" data-target="#mymodal">launch modal</button>
javascript jquery
No comments:
Post a Comment