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.