My HTML:
<a href="?id=2" id="showdiv">Open div and store values</a>
<div id="divtoshow" style="display:none;">Hello</div>
My jQuery:
$("a#showdiv").click(function(){
$("#divtoshow").show();
}
My Problem:
When I click on the link it must show the div and add the query string but it doesn't work, because if I click the link it restarts the page to add the query string and then the div won't show. But I still need it to add the query string then.