Code in index.html
<head>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</head>
<body onload="loadIndex()">
<a id="registration" href="register.html"> Register </a>
</body>
Code in index.js
function loadIndex() {
alert("Page is loaded");
$("#registration").hide();
}
I get alert, but link is not hidden. I have more files, and this does not work in any of them. I think that mistake is not in code, but I don't know where is.