Wednesday, August 22, 2012

jquery – Why i can't use this in header?

I can\’t use the script in header, Here is the code:



<!DOCTYPE html>
<html>
<head>

<script src=\"http://code.jquery.com/jquery-latest.js\"></script>
</head>
<body>
<a href=\"javascript:void\" class=\"sl-start\">Click Here</a>
<p class=\"slide\" style=\"display: none\">Something to display</p>

<script>
$(\".sl-start\").click(function () {
$(\".slide\").show();
});
</script>
</body>
</html>






Rating: 2 out of 5 based on 4 ratings



The post jquery – Why i can't use this in header? appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/jquery-why-i-cant-use-this-in-header.html

No comments:

Post a Comment