I am trying to hide/disable Edit/View button from sharepoint list ribbon, but not able to.
Please let me know if someone can help me. I can only use JavaScript.
Also, Please note that I want to hide only two buttons(Edit/View) not the whole ribbon.