helloo i have created a login/register box but javascript doesnt work. I dont see an error and it used to work but i have reinstall the local server and now any of my javascripts dont work. Any help?
<script type="text/javascript">
$(document).ready(function()
{
$(".tab").click(function()
{
var X=$(this).attr('id');
if(X=='signup')
{
$("#login").removeClass('select');
$("#signup").addClass('select');
$("#loginbox").fadeOut(300);
$("#signupbox").fadeIn(300);
}
else
{
$("#signup").removeClass('select');
$("#login").addClass('select');
$("#signupbox").fadeOut(300);
$("#loginbox").fadeIn(300);
}
});
});
</script>
<div id="container">
<div id="tabbox">
<a href="#" id="signup" class="tab signup"><?php echo $lang['SignUpForFree']; ?></a>
<a href="#" id="login" class="tab select"><?php echo $lang['signin'];?></a>
</div>
<div id="panel"><br>
<div id="loginbox" >
some code here
</div>
<div id="signupbox">
some code here
</div>
</div>
</div>