Changing the data in before submit
I am using the ajaxForm plugin found here Now i have a form with username & password My requirement is to change the value of password field to its md5 so for that I am using the plugin found here so for that I am using like this : $('myForm').ajaxForm({ url : 'pathtosend', type : 'post', beforeSubmit : function(arr, $form, options){ $('#password').val($.md5($('#password').val())); }, success : function(response, statusText, xhr, $form){ alert('blah blah'); } }); Now when I print the value of password in java servlet code it shows the one that I passed and not the md5 of the value as I did.