Latest Lists

how do you change the "selected" item in an UL??

I'm working on a ajax tab system and I'm trying to make a tabular effect but the only way to do it is to change the "selected" item in an Unordered list (UL) and I'd like to know how I would do that in javascript. is there a way to pass the UL item through a href?? for example href="javascript:meSelected(this)" or what can I do? I just want to be able to pass the list item to the function and have that function change the selected UL item to the one that was clicked.

Public Comments

  1. that should work - once you get it from the query string, extract it, and use an OnLoad (i dont know if it kicks off with AJAX) or similar event to change the "selected" value in the list. as for the exact syntax, there are some sites like w3schools.org that let you try the HTML online for free.
Powered by Yahoo! Answers