Re-Enable button after submit

♀尐吖头ヾ 提交于 2019-12-11 19:43:12

问题


I'm employing a solution similar to the answer of OnclientClick and OnClick is not working at the same time ?

How this currently works is that a file is generated and returned to the client, however after the file is returned the button should become active again. so the response contains the file. But the button does not reactivate.

I'm not certain if this can be done. Any thoughts? Thanks


回答1:


You could set the Id mode of the button to static. Then choose a unique Id for the button. Whenever you have verified that the file is successfully transmitted you can call (jquery):

$("#idOfSubmitButton").attr("disabled", false);


来源:https://stackoverflow.com/questions/2685334/re-enable-button-after-submit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!