表单提交和jQuery的服务器问题

编程入门 行业动态 更新时间:2024-10-27 18:32:05
本文介绍了表单提交和jQuery的服务器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有两个问题,我对它们有问题,我真的不知道从哪里开始寻找以及如何处理它们 我想它们是相关的: 第一个是jquery问题... 当我在计算机上加载页面(本地)时,所有显示的都正确:

i have two issues that i have problem with them and i dont really know where to start looking and how to handle them i guess that they are related: first one is jquery issue... when i load the page on my computer (local) all appear right:

if($('.error',$formId).length) { return false; } else{ $('#btn-submit').fadeOut(200, function() { $('#btn-submit').attr("src","images/Site_Images/checkMark.jpg"); $('#btn-submit').fadeIn(200); $('#btn-submit').removeAttr('onmouseover').removeAttr('onmouseout'); }); // $formId.trigger('submit'); }

出现复选标记图像. 当我在wamp服务器中加载我的网站并从->中删除评论时//$ formId.trigger(''submit''); 因此该表单将提交,然后发生两个问题: (如果我保留提交行注释,则图像显示正确) 它必须是带有Submit表单的东西. 首先是没有出现的复选标记,而是出现了矩形边框. 并且 second 是提交之后.所有表格都消失了. 任何帮助将不胜感激.. 在高级中表示感谢.

the check mark image appear. when i load my site in wamp server and remove the comments from--> // $formId.trigger(''submit''); so the form will submit then the 2 issues occur : ( if i leave the submit line comment out then the image appear right ) it has to be something with the form submit. first is the check mark that doesnt appear, instead a rectangle border appear . and second is after submit. all the form disappear. any help would be appreciate .. Thanks in advanced.

推荐答案

(' .error' ,

formId).length){ 返回 假; } 其他 { formId).length) { return false; } else{

(' #btn-submit').fadeOut( 200 , function (){ ('#btn-submit').fadeOut(200, function() {

更多推荐

表单提交和jQuery的服务器问题

本文发布于:2023-10-26 17:13:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530792.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   服务器   jQuery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!