Click here to Skip to main content
14,607,796 members

JavaScript

 
GeneralRe: Using XML Pin
Richard MacCutchan28-Apr-19 22:25
mveRichard MacCutchan28-Apr-19 22:25 
GeneralRe: Using XML Pin
V.28-Apr-19 22:38
professionalV.28-Apr-19 22:38 
AnswerRe: Using XML Pin
Graham Breach29-Apr-19 2:35
MemberGraham Breach29-Apr-19 2:35 
GeneralRe: Using XML Pin
V.30-Apr-19 1:38
professionalV.30-Apr-19 1:38 
Question<SOLVED> Why is my validation script not working? Pin
samflex26-Apr-19 4:20
Membersamflex26-Apr-19 4:20 
AnswerRe: Why is my validation script not working? Pin
Richard Deeming26-Apr-19 4:31
mveRichard Deeming26-Apr-19 4:31 
GeneralRe: Why is my validation script not working? Pin
samflex26-Apr-19 4:45
Membersamflex26-Apr-19 4:45 
GeneralRe: Why is my validation script not working? Pin
Richard Deeming26-Apr-19 4:49
mveRichard Deeming26-Apr-19 4:49 
samflex wrote:
It displays all the messages before user has a chance to invoke.

Probably because you're calling the .valid function immediately, rather than waiting until the form is submitted. Smile | :)
<script>
...
if ((!$('#msform').valid())) {
    return false;
}
</script>

Those lines should probably be inside a handler for the form's submit event:
$("#msform").sumbit(function(evt){
    if (!$(this).valid()) {
        evt.preventDefault();
    }
});

However, I think the jQuery validation library already handles this for you, so they may not be required at all.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Why is my validation script not working? Pin
samflex26-Apr-19 5:04
Membersamflex26-Apr-19 5:04 
Questionjavascript Pin
Member 1418486021-Apr-19 23:48
MemberMember 1418486021-Apr-19 23:48 
AnswerRe: javascript Pin
W Balboos, GHB15-May-19 4:08
mveW Balboos, GHB15-May-19 4:08 
AnswerRe: javascript Pin
Shraddha_Patel5-Nov-19 17:30
MemberShraddha_Patel5-Nov-19 17:30 
QuestionAdding Blank pages to PDF when requirements met Pin
Member 142140864-Apr-19 15:03
MemberMember 142140864-Apr-19 15:03 
QuestionRe: Adding Blank pages to PDF when requirements met Pin
Richard MacCutchan4-Apr-19 17:57
mveRichard MacCutchan4-Apr-19 17:57 
AnswerRe: Adding Blank pages to PDF when requirements met Pin
Member 142140864-Apr-19 18:07
MemberMember 142140864-Apr-19 18:07 
GeneralRe: Adding Blank pages to PDF when requirements met Pin
Richard MacCutchan5-Apr-19 5:10
mveRichard MacCutchan5-Apr-19 5:10 
Questionprint array json in dinamic table <html> Pin
serenimus29-Mar-19 11:15
Memberserenimus29-Mar-19 11:15 
AnswerRe: print array json in dinamic table <html> Pin
Richard MacCutchan29-Mar-19 22:29
mveRichard MacCutchan29-Mar-19 22:29 
GeneralRe: print array json in dinamic table <html> Pin
serenimus29-Mar-19 22:50
Memberserenimus29-Mar-19 22:50 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan29-Mar-19 23:28
mveRichard MacCutchan29-Mar-19 23:28 
GeneralRe: print array json in dinamic table <html> Pin
serenimus30-Mar-19 8:27
Memberserenimus30-Mar-19 8:27 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan30-Mar-19 21:22
mveRichard MacCutchan30-Mar-19 21:22 
GeneralRe: print array json in dinamic table <html> Pin
serenimus2-Apr-19 8:02
Memberserenimus2-Apr-19 8:02 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan3-Apr-19 4:47
mveRichard MacCutchan3-Apr-19 4:47 
QuestionChanging a font color Breaks my script??? Pin
Member 1420217628-Mar-19 9:04
MemberMember 1420217628-Mar-19 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.