hiroprotagonist / jquery.mobile.actionsheet

An actionsheet for jquerymobile
103 stars 34 forks source link

How to call in JS? #24

Closed justechn closed 12 years ago

justechn commented 12 years ago

I am building my page with ajax and it is not linking the actionsheet to the link. I assume this is because your code is running before my page is done building. So I need to know how to call this code after I am done building my page with ajax?

hiroprotagonist commented 12 years ago

$('a#your_toggle_id').actionsheet();

justechn commented 12 years ago

Thank you very much. I ended up using code like this

$( ":jqmData(role='page') :jqmData(role='actionsheet')" ).each(function() { $(this).actionsheet(); });