You can use
switch in javascript
:
http://www.w3schools.com/js/js_switch.asp
Have you tried to
register client script block?
Btw, as another option, you have a list control in your toolbox as an asp control;
You can use that one, set an id to each list item and in the code behind file to do what you want to do in your javascript.