I have the following code and trying to hide XYZ. Why isn’t it getting hidden using this code?
<html>
<head>
<script type="text/javascript">
$(function(){
$('#hide').hide();
});
</script>
</head>
<body>
<div id="hide">
XYZ
</div>
</body>
</html>
Thanks.
You need to include a reference to jQuery in order to use jQuery functions