Why does jquery ui dialog change autocomplete jquery.tokeninput.js?

I am using snazzy jquery tokeninput plugin and jquery ui. When I show a form with an input signal in it, instead of displaying the token input correctly, it loses some styles and splits it into two input fields. I made a repro page (linked below) that distorts it.

Why is he doing this, and what can I do to fix it?

example repo html doc here: http://dl.dropbox.com/u/2808109/jquery%20dialog%20tokeninput%20demo.htm

edit: found the answer

0
source share
1 answer

It looks like the dialog re-runs the script tags in the code block, so my autocomplete is done twice.

, script ,

$("#popup script").remove();
$("#popup").dialog({ ... });
+1

All Articles