Hi, I'm trying to set a hidden field's value to true before submitting. First I bind the form: $(".advancedSearchForm").ajaxForm( { target: '.colorList', beforeSubmit: ShowRequest, success: ShowResponse } ); Then in the before submit I set the field value to true function ShowRequest(formData, jqForm, options){ $('#isAjax').val("true"); // var elements = jqForm[0].elements; // elements[19].value = "true"; $('.colorList').fadeOut('slow'); return true; } A quick alert($('#isAjax').val()) shows me it is indeed "true". But at the server side (asp.net) the field still has the old value if (Request.Form["isAjax"] == "true") is false
It seems the before submit is not really before submit. Any ideas?