I want to retrieve all the html elements after font:first element inside p in the below code.
<p class="rrp">
<font color="#ff6600">
<strong>
Save 20% on in-house Frames and Sunglasses
<br>
Save 10% on Contact Lens and Branded Frames
<br>
Ask at the counter for more details
</strong>
</font>
<br>
GKB Opticals, Shop No. EB-GF-10, Block East, Ground Floor, Town Centre - Amanora Mall, Amanora Park Township, Village Sadesatranali (17-1/2 Nali), Hadapsar, Taluka Haveli,
<br>Pune - 411 028.
<br>
<font color="#339900">Validity:</font>
31st March 2013
</p>
So, the result would be
<br>
GKB Opticals, Shop No. EB-GF-10, Block East, Ground Floor, Town Centre - Amanora Mall, Amanora Park Township, Village Sadesatranali (17-1/2 Nali), Hadapsar, Taluka Haveli,
<br>Pune - 411 028.
<br>
<font color="#339900">Validity:</font>
31st March 2013
I should give you some code I’ve done, but I have no idea how to fetch the elements after certain element.
Could anyone guide me?
thanks!
You can use
nextAllmethod which selects all following siblings of the element.If you want to exclude the first font element, you can use
filtermethod.http://jsfiddle.net/c7VSY/