Actually, I withdraw that. .text() returns the text of all nodes combined (in 
example 1: "here is some text").

 ~ ~ Dave

On Tue, 29 May 2007 15:57:55 -0400, DaveG <[EMAIL PROTECTED]> wrote:
> 
> 
> Indeed it is, thanks. I worked that out after posting -- I figured it had
> to be something incredibly complicated ;)
> 
>  ~ ~ Dave
> 
> 
> On Tue, 29 May 2007 14:56:58 -0500, "Jonathan Sharp" <[EMAIL PROTECTED]>
> wrote:
>> I believe it's something like $('div').text();
>>
>> -js
>>
>>
>> On 5/29/07, DaveG <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>> How do I find the first text-node of a given DOM object?
>>>
>>> Input: <div><p>here is</p> some text</div>
>>> Output: " some text"
>>>
>>> Input: <h1><a href="#id1"></a>Header 1</h1>
>>> Output: "Header 1"
>>>
>>> ~ ~ Dave
>>>
>>>
>>
>>

Reply via email to