[jQuery] Re: parent window

2008-04-28 Thread Bernhard Mager
As there is jQuery included in the parent page, you can use opener.$('#some_id') or like that ... Regards, Bernhard SimDigital schrieb: How could i call an element in "parent.window" ? Sample: window1 window2 function sampletext() { parent.window.#sample.text("Some new text."); }

[jQuery] Re: Targeting nested items by class name

2008-04-17 Thread Bernhard Mager
For the first you should close the -Tags correctly with : content here content here content here $('div.car div') gives you the three div-Elements inside . With $('div.car div').click(function(event){ alert(this.className); }) you bind a function to the click event of every enclose div