I have a token variable that I get with php and write to a div using the data-value parameter so that jquery can get it. I do not want users to see so I was wondering if it was possible to
- Hide this data on the way to jquery (in the data-value parameter)
- Encrypt the data in Jquery so when the header or sent parameters are displayed, token is encrypted or not visible
var token=$('#token').attr('data-value');
$.ajax({
type: "POST",
data: "action=edit&token=" + token,
url: "doc.php",
dataType: 'json',
success: function(response, statusText)