This should work:

var clone = $("p").clone();
clone.find("span").remove();

clone.each( function() { console.log(this) } );

On Sep 28, 2:13 pm, [EMAIL PROTECTED] wrote:
> Hi Guys,
>
> this is the Code which I am working on
>
> <p>
>   Data which I need to select and it hasn't  an attribute
>   <span> Data in a Span </span>
> </p>
> <p>
>   Data which I need to select and it hasn't  an attribute
>   <span> Data in a Span </span>
> </p>
> <p>
>   Data which I need to select and it hasn't  an attribute
>   <span> Data in a Span </span>
> </p>
> How could FIlter and Select the text Before the <span>
> does someone has an Idea ?

Reply via email to