View Single Post
  #1 (permalink)  
Old May 28th, 2007, 06:42 AM
kaps77 kaps77 is offline
Authorized User
Join Date: Apr 2007
Location: Chandigarh, , India.
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to get nodes from Selection/Range

Is it possible to get the nodes from the Range object?
My html consists of multiple div and span nodes, for example:
<div>start<span class="blue">text</span><span class="red">more text</span><span class="green">still more text</span>end</div
If the user selects the text between start and end and selects a class from a combo, I need to change the class of each span in the selection.
How can I get list of nodes from the Selection or Range?
Reply With Quote