我有一个表单,其中提交功能需要几分钟.我想在提交正在启动时显示动画GIF.下面的代码显示了gif,但它并没有移动.我可以做些什么来实现
- <script type="text/javascript">
- $(function() {
- $("#submit").click(function() {
- $("#wait").show();
- return true;
- });
- });
- </script>
- <% Using Html.BeginForm%>
- <%-- VarIoUs input fields here --%>
- <input id="submit" type="submit" value="Submit" />
- <img id="wait" src="../../Content/images/ajax-loader.gif" alt="" style="display: none" />
- <% End Using%>