
 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 12/10/2007 17:29:39 Date: Sat, 13 Oct 2007 00:29:39 -0700
I need to write a script that will reverse the ordering of the <span> tags programatically.
<div class="paragraph"> <span class="line">line 1</span> <span class="line">line 2</span> <span class="line">line 3</span> </div>
when the function runs the html display should be
<div class="paragraph"> <span class="line">line 3</span> <span class="line">line 2</span> <span class="line">line 1</span> </div>
Can this be done with javascript? Sorry I'm new to programming.
|