> So if I have > <div class="example" id="example10"> > Lorem ipsum <strong>dolor sit amet</strong>. > </div> > I need to grab that entire bit as a single string, including the first > div and it's attributes.
How about the.andSelf() method? http://docs.jquery.com/Traversing/andSelf