i am making a javascipt function to make show and hide, but i have a problem that i cant use this function by anchors.
<div id="show2" class="show_span" style="cursor:pointer; display:inline;" onclick="showhidefn('doc2','show2');location.href='#1' " >
i need to make it using anchors. but the anchor is not working well wiz me using js.
can anyone help me to make the anchor using js?


