表单提交和jQuery的服务器问题 [英] server issues with form submit and jquery

查看:57
本文介绍了表单提交和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{


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


这篇关于表单提交和jQuery的服务器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆