It is required to hide the block with user info if it is authorized on the site. I wrote this code, but it does not work. what could be wrong?
<?php $user = JFactory::getUser(); if($user->id>=0) { ?> <script type="text/javascript"> $(document).ready(function(){ jQuery('.menter6').hide(); }); }); </script>