That works too :), although much more dependent upon your markup.
On Mar 9, 7:10 pm, RobG <rg...@iinet.net.au> wrote: > On Mar 10, 9:14 am, bawestcott <bwestc...@shaw.ca> wrote: > > > I am using the jquery windows plugin and i would like to be able to > > get the title of each window that is created. An example of the html > > that the plugin creates for the windows title bar is: > > <div class="window-titleBar" style="z-index: 103;"> > > Click Example5 > > <div class="window-minimizeButton">-</div> > > <div class="window-maximizeButton">O</div> > > <div class="window-closeButton">X</div> > > </div> > > > In this case I would like to get the value "Click Example 5" from this > > particular window. I can get the values of all of the divs in > > windowTitleBar ("Click Example5-0X"), but I can't figure out how to > > get the firat value only. > > Can someone plase help? > > Where div is a reference to the div you want: > > div.firstChild.data; > > -- > Rob