Sunday, April 29, 2012

Javascript To hide and show segment

<div style="font-weight:bold"><a href="#" onclick="javascript:document.getElementById(' test').style.display == 'none' ? document.getElementById(test).style.display='' : document.getElementById('Sprint2 test).style.display='none' "></div>
<div id="test" style="display:none">
Blah</div>

No comments:

Post a Comment