Good morning I am trying to show a modal when loading a page taking a reference class, what I want to achieve is to show the modal in only one page and in the others not what I'm thinking about is taking a reference class and show the modal if that class exists on the page
$(document).ready(function () {
document.getElementById('hoteles').load( function() {
//$(window).load(function(){
$('#myModal').modal('show').delay(30000).fadeOut('fast');
});
)};
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
I was trying to do it like that but it obviously gives me error