Ver original<script type="text/javascript"> $(function() { for (x=1;x<=3;x++) { $('"#ms'+x+'"').click(function() { $('"#msd'+x+'"').show('fast'); }); } });</script><ul> <li id="ms1">Item1<div id="msd1">Div1</div></li> <li id="ms2">Item2<div id="msd2">Div2</div></li> <li id="ms3">Item3<div id="msd3">Div3</div></li></ul>