Skip to content

JQuery Mobile Tips #2

August 14, 2011

For those that are using the JQuery Mobile UI, and doesn’t want to use the ‘live’ event for triggering the dialog close, you can use the ‘bind’ event on dialogclose instead, here is the code for this:-

$(‘div#dialog’).bind(‘dialogclose’, function(event) { alert(‘closed’); });

This alert is made to check that the code to trigger the dialogclise works, hope that helps!

Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: