***Always
use \\. to escape . character as JQuery does not allows it as a selector***
Hide:
Page $('#Ribbon\\.WebPartPage-title').hide();
Edit $('#Ribbon\\.ListForm.Edit-title').hide();
Browse $('#Ribbon\\.Read-title').hide();
Show:
Page $('#Ribbon\\.WebPartPage-title') .show();
Edit $('#Ribbon\\.ListForm.Edit-title') .show();
Browse $('#Ribbon\\.Read-title') .show();
Example:
<script type="text/javascript">
$( document ).ready(function() {
$('#Ribbon\\.WebPartPage-title').hide();
});
</script>
Happy coding
Happy coding

No comments :
Post a Comment