Popup popup using jquery mobile in phonegap app

I have a popup that is called like this:

$( "#popupid" ).popup("open");

      

something like:

<div data-role="popup" id="popupId" class="ui-content">
</div>

      

Is it possible for it to automatically disappear and disappear? I am using jQuery Mobile in a PhoneGap app.

+3


source to share


1 answer


Just:

add this to HTML

data-transition="fade"

like this



<div data-role="popup" data-transition="fade" id="popupId" class="ui-content">
</div>

      

then do your logic for your automatic popup('open')

andpopup('close')

It works 100%

+1


source







All Articles