[jQuery] Re: how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-20 Thread Cormac
Here: http://www.digit-life.com/test2.html It worked with some usual text. On Aug 19, 7:50 pm, Ryura <[EMAIL PROTECTED]> wrote: > That should've worked. Can you provide a test-case page?

[jQuery] Re: how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-18 Thread Cormac
Could you please tell me how to do it properly? I tried writing "<\/ script>", but it didn't work. Thanks! On Aug 19, 4:38 am, Ryura <[EMAIL PROTECTED]> wrote: > .before('google code here') > > You'll want to escape any 's. > > On

[jQuery] how to insert javascript code instead of text with .before() or anything else jQuery has?

2008-08-18 Thread Cormac
Hello everyone, I'm new to jQuery (and to programming, as a matter of fact). Still, I have this task: find a certain element on an html page and insert a google ad before it (or just anywhere nearby). I have no problems finding the necessary element, but I just cannot understand how to insert any