In jQuery I have a function that gets an id that i want to encrypt the date in mvc method, in mvc we can access the coding in html view page itself. in that how to add jQuery function data in that one method
My jQuery function
function Redirect(id) {
var propertyidconvert = '@Utility.Utilities.Commonfunction.Encrypt(id, "PropertyId")';
alert(propertyidconvert);
}
I have a C# method to encrypt the data, but I am unable to add id value, showing error.