Bambam007
05-22-2009, 10:39 AM
Hi All,
I have an Unordered List, each List Item has a div nested inside with an ID.
I am constantly adding to this list, it has to be in alphabetical order, so its kind of a pain to update. I thought I could make things a little easier by using a javascript array to sort it out via the nested div ID. But I can't figure it out, please help...
I don't want to click, i just want the page to load already in place.
here is and example of my list
<li><div id="chimney"><a href="index.php?page=001"></a></div></li>
<li><div id="zendo"><a href="index.php?page=002"></a></div></li>
<li><div id="peaches"><a href="index.php?page=003"></a></div></li>
I have an Unordered List, each List Item has a div nested inside with an ID.
I am constantly adding to this list, it has to be in alphabetical order, so its kind of a pain to update. I thought I could make things a little easier by using a javascript array to sort it out via the nested div ID. But I can't figure it out, please help...
I don't want to click, i just want the page to load already in place.
here is and example of my list
<li><div id="chimney"><a href="index.php?page=001"></a></div></li>
<li><div id="zendo"><a href="index.php?page=002"></a></div></li>
<li><div id="peaches"><a href="index.php?page=003"></a></div></li>