Friday, 15 May 2015

javascript - Add jquery mobile draggable button at runtime -



javascript - Add jquery mobile draggable button at runtime -

i building jquery mobile prototyping. want add together button in @ runtime should draggable , resizeable. works when have added button manually in code not dynamically. please help :(

dynamic code: $("#myframe").contents().find("#drag").append(' dynamic');

mobile content tag:

button1

jquery draggable:

$(".draggable").draggable();

try :

after insert button dynamically, recreate page...

$("div[data-role='page']").page('destroy').page();

last time had faced similar problem. solved way.

javascript jquery jquery-mobile

No comments:

Post a Comment