[jQuery] Re: Getting text from a div

2009-03-10 Thread mkmanning
That would be the same as RobG's: div.firstChild.data; where this.$windowTitleBar[0] = the containing div (although it's unclear how you'r getting this.$windowTitleBar[0]) $('.window-titleBar')[0] will get the element from the jQuery selector. Using .firstChild.data on that will work but is de

[jQuery] Re: Getting text from a div

2009-03-10 Thread bawestcott
I found that : this.$windowTitleBar[0].firstChild.data works On Mar 9, 8:10 pm, RobG wrote: > On Mar 10, 9:14 am, bawestcott 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

[jQuery] Re: Getting text from a div

2009-03-09 Thread mkmanning
That works too :), although much more dependent upon your markup. On Mar 9, 7:10 pm, RobG wrote: > On Mar 10, 9:14 am, bawestcott 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 th

[jQuery] Re: Getting text from a div

2009-03-09 Thread bawestcott
I had no idea that it was as complicated as it is. I downloaded the plugin and it worked great. Thanks. On Mar 9, 6:29 pm, mkmanning wrote: > There's at least one plugin (http://plugins.learningjquery.com/ > textchildren/); you might want to search the plugin repository. If you > aren't going to

[jQuery] Re: Getting text from a div

2009-03-09 Thread RobG
On Mar 10, 9:14 am, bawestcott 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: > > Click Example5 > - > O > X > > > In this case I would

[jQuery] Re: Getting text from a div

2009-03-09 Thread mkmanning
There's at least one plugin (http://plugins.learningjquery.com/ textchildren/); you might want to search the plugin repository. If you aren't going to take advantage of it's other features, and don't want to incur an additional http request just for this, you can do it with jQuery: $.trim($('div.