English 中文(简体)
形式验证不可行
原标题:Form validation is not working

Please see my demo here. required_valid() doesn t work after I click on the "Click Me" button. There are two <form> elements after I click on "Click Me", I use of two form, how can I fix this problem?

....

 $( .submit ).live( submit , function() {
        var passed = true;
        passed = autocomplet_valid() && passed;
        passed = ticket_check() && passed;
        passed = required_selectbox() && passed;
        passed = required_valid() && passed;
        if (!passed) {
            $( #loadingDiv, #overlay ).hide();
            return false;
        }
    });
问题回答

由于你没有“24小时”的 element子,你现在没有工作,你重新发现这一错误:

test (line 42)
document.getElementById("clock") is null
[Break On This Error] document.getElementById("clock").innerHTML = output; 

如何仅仅处理纽特点击?

$("form.submit button").click(...);

顺便说一句,您能否调整其超文本结构,以便不设一个封套<form>? 第一类实际上没有构成要素,即只有一个环节。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签