c# - Controller Action not firing after disabling Submit button in jquery in file upload -


i have upload button after filepload control after disbaling button actionmethod in controller not been called.please find below code: in jquery:

  $(document).ready(function () {             $("input[type=submit]").removeattr("disabled");             $("#btnupload").click(function () {                 $('#progressbardiv').show();                $("input[type=submit]").attr("disabled", "disabled");              });         });    

in action in controller:

/// <summary>         /// action on upload button click         /// </summary>         /// <returns>actionresult</returns>         [acceptverbs(httpverbs.post)]         public actionresult upload(httppostedfilebase fileupload)         {      } 

disabled elements don't fire events. you'll have re-enable in order fire submit.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -