What about doing is client-side?
So cycle through each line with each() and then use .wrap("").
This will put into the DOM what you need to use later.
Also, you might be interested in this plugin.
http://www.jquery.info/The-plugin-SearchHighlight
It finds text based on search criteria in a large
oh man, i wish i could do as you suggested, that was my first idea and
it would make things so much easier. However, the code i'm working
with is markup of Shakespeare's works. Its incredibly complex and we
use Cocoon to generate these pages from xml. long story short, my
employer can't afford
I tried to cut corners by skimming your html. I see it now. The divs close
and the text is after the div.
This is really strange HTML to me. Why not just put the text inside the
div? Or just wrap the text inside a span?
If you wrap the text inside spans, then the jQuery is pretty simple. I
whi
hi glen, thanks for replying.
That still wouldn't work. With that you are looking for the text
inside div elements which are descendants of of the id'd element.
What i want to select are certain text elements of the id'd element.
I figured something out, but this is surprisinlgy difficult:
oh and yes, firebug is a Godsend. It is the most useful tool in my
programming environment, by a long shot. I strongly recommend people
learn all of its features like the debugger and the profiler.
On May 5, 4:23 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote:
> $("#tln21 div").text();
>
> Like that?
$("#tln21 div").text();
Like that? By the way, firebug is very helpful to test our selectors and
see what they come up with.
Hmm, it would be nice to have a tutorial on how to do this. I can try and
whip one up.
Glen
On Mon, May 5, 2008 at 2:47 PM, darren <[EMAIL PROTECTED]> wrote:
>
> hi Joe
hi Joe, thanks for your comment
If you look closer, you can see that the text is not actually in the
div element. i basically need to select the text after that node:
Some text
some more text
even more text
So that wouldnt work
On May 5, 2:06 pm, Joe <[EMAIL PROTECTED]>
$("#tln21').text();
This will return the text associated with id="tln21".
http://docs.jquery.com/Attributes/text
Joe
www.subprint.com
On May 5, 2:34 pm, darren <[EMAIL PROTECTED]> wrote:
> Hi everybody, new member here.
>
> I have a project with the following snipped of code:
>
> =start
8 matches
Mail list logo