model is opening on click :
<a href="#" data-remodal-target="test" >test</a>
my model code is :
<div class="remodal" data-remodal-id="test">
<h3 class="modal-middle-heading">Buy</h3>
<p>Please select your desired gift city.</p>
<form class="login-form">
<input type="text" placeholder="Search City" />
</form>
<button>Search</button>
</div>
How can I open model on load ?
Try this,
<script type="text/javascript">
$(window).load(function(){
$('#test').modal('show');
});
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.