Is it possible to hide the attributes of a HTML tag? Suppose I have this code:
<div class="test"></div>
When someone use inspect elements on my website, they can only see this:
<div></div>
The reason why I want to do that is this: I'm building a Web Application for my assigment at college, using Java as back-end language (I'm using Spring MVC Framework). I try to send a request and receive response without reload the entire page, and I found an example of using AJAX like this:
<button class="btn btn-success btn-lg" onclick="$.post('/waiter/order/2/menu?product=Crown%20Royale')">Crown Royale</button>
As you can see, the information of the request call is shown in HTML, and I want to hide it to keep the privacy of my Website.