[jQuery] Re: question about loading javascript into an element after dom is ready

2008-10-18 Thread ricardobeat
You are not really taking advantage of jQuery.. and document.write() calls that are not present on page load will always clear the page. You can simply do: $(document).ready(function(){ //$('#jt').after(''); //insert the script, but this would clear the page too $('#jt').after('I am her

[jQuery] Re: question about loading javascript into an element after dom is ready

2008-10-18 Thread ricardobeat
Just to be clearer, you can't use document.write() after the page is already loaded. - ricardo On Oct 18, 3:09 pm, jt <[EMAIL PROTECTED]> wrote: > I'd like to load a js file into a specific location but it replaces > the page with what is being written out. I suspect there's a fairly > obvious a