160
rated 0 times
[
163]
[
3]
/ answers: 1 / hits: 33405
/ 9 Years ago, tue, may 12, 2015, 12:00:00
I want to open a jQuery Mobile popup programmatically and then close it after some seconds, here is my code :
is there anything wrong, cause I'm not getting what I want to show
$( #p ).popup( open );
setTimeout( function(){ $( #p ).popup( close ); }, 5000 );
<script src=https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js></script>
<script src=http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js></script>
<div data-role=popup id=p data-position-to=window data-transition=turn><p>This is a completely basic popup, no options set.</p></div>
More From » html