Hi everybody, new member here.

I have a project with the following snipped of code:

=====start html=====
<div class="line">
                              <div name="tln4" id="tln4" class="ln
tln">
                                 <!---->
                              </div>As I remember, Adam, it was upon
this fashion
                              <div name="tln5" id="tln5" class="ln
tln">5</div>bequeathed me by will but poor a thousand
                              <div name="tln6" id="tln6" class="ln
tln">
                                 <!---->
                              </div>crowns, and, as thou say'st,
charged my brother,
                              <div name="tln7" id="tln7" class="ln
tln">
                                 <!---->
                              </div>on his blessing, to breed me well;
and
                              <div name="tln8" id="tln8" class="ln
tln">
                                 <!---->
                              </div>there begins my sadness. My
brother Jaques he keeps
                              <div name="tln9" id="tln9" class="ln
tln">
                                 <!---->
                              </div>at school, and report speaks
goldenly of his profit.
                              <div name="tln10" id="tln10" class="ln
tln">10</div>For my part, he keeps me rustically at home, or, to
speak
                              <div name="tln11" id="tln11" class="ln
tln">
                                 <!---->
                              </div>more properly, stays me here at
home unkept; for call
                              <div name="tln12" id="tln12" class="ln
tln">
                                 <!---->
                              </div>you that "keeping" for a gentleman
of my birth that differs
                              <div name="tln13" id="tln13" class="ln
tln">
                                 <!---->
                              </div>not from the stalling of an ox?
His horses are bred
                              <div name="tln14" id="tln14" class="ln
tln">
                                 <!---->
                              </div>better, for, besides that they are
fair with their feeding,
                              <div name="tln15" id="tln15" class="ln
tln">15</div>they are taught their man�ge, and to that end riders
                              <div name="tln16" id="tln16" class="ln
tln">
                                 <!---->
                              </div>dearly hired; but I, his brother,
gain nothing under
                              <div name="tln17" id="tln17" class="ln
tln">
                                 <!---->
                              </div>him but growth, for the which his
animals on his
                              <div name="tln18" id="tln18" class="ln
tln">
                                 <!---->
                              </div>dunghills are as much bound to him
as I. Besides this nothing
                              <div name="tln19" id="tln19" class="ln
tln">
                                 <!---->
                              </div>that he so plentifully gives me,
the something that
                              <div name="tln20" id="tln20" class="ln
tln">20</div>nature gave me his countenance seems to take from
                              <div name="tln21" id="tln21" class="ln
tln">
                                 <!---->
                              </div>me. He lets me feed with his
hinds, bars me the
                              <div name="tln22" id="tln22" class="ln
tln">
                                 <!---->
                              </div>place of a brother, and as much as
in him lies, mines my
                              <div name="tln23" id="tln23" class="ln
tln">
                                 <!---->
                              </div>gentility with my education. This
is it, Adam, that
                              <div name="tln24" id="tln24" class="ln
tln">
                                 <!---->
                              </div>grieves me; and the spirit of my
father, which I think
                              <div name="tln25" id="tln25" class="ln
tln">25</div>is within me, begins to mutiny against this servitude.
                              <div name="tln26" id="tln26" class="ln
tln">
                                 <!---->
                              </div>I will no longer endure it, though
yet I know no wise
                              <div name="tln27" id="tln27" class="ln
tln">
                                 <!---->
                              </div>remedy how to avoid it.
                              <!---->
                           </div>
====End HTML====

I have a short selection of text and a tln that the text should be
found near.  I wan to use jquery to find this text node so that i can
manipulate it.  My trouble is that I dont understand how the DOM
treats text nodes and element nodes.

So say for example i had the information (tln21) and a text snippet
"He lets me".  What i tried was:
$("#tln21').siblings()
But this is only returning element siblings, not text siblings.

what can i do here? thanks for any help.

Reply via email to