Destroy dialog after closing it - jQuery Mobile -


i know if there's way can destroy dialog after closing it.
, reason : have dialog dynamic content add text , buttons.
when first open dialog, elements styled jquery mobile theme (e.g. buttons), but... when close , reopen second time, dynamic content, elements not styled jqm theme, normal navigator-styled elements.

possible explanation :

at first, when dialog isn't yet initialized, can insert whatever elements want in it, , in initialization process, jquery mobile stylize elements accordingly. , when close dialog, possible isn't destroyed , when try open it, doesn't initialize elements.

how can destroy dialog , remove dom before opening again ?

all had trigger create on dialog after editing content, , then open :

$('#devicehistorydialog').trigger('create'); $('#linkopenhistorydialog').click(); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -