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:
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