Hey there, I'm trying to append HTML code to a DOM element, with a string that also contains a <script> tag:
<input type="text" id="foo"> <script type="text/javascript"> stylizeInput($('input#foo')); </script> It works fine, just like it should according to jQuery functionality. The crucial thing is: The script is being processed too fast, therefore executed before the input field is known. How can I delay execution until the HTML part is fully loaded? $('input#foo').ready() won't work and I don't consider setTimeout as a solution. Thanks for your help Eric