I'm trying to apply encodeURIComponent()
to the data before submitting it to the server.
I've tried :
submitdata: function (value, settings) {
return {
value: encodeURIComponent(value)
}
},
but this doesn't work. It always picks the old value. How do I fix that?