score:1
ok, I think I've got it. I need to give each form a unique class (or ID) rather than giving them all the same class of validate, and reference the new class in the javascript.
score:2
You are right; I had similar experience using software worklight, maybe because of its ajax control and iframe integration.
I suggest creating a globalValidation.js
with following code
$(document).on('pageinit pageshow', 'div:jqmData(role="page"), div:jqmData(role="dialog")', function(){
if($("form.validate").length > 0){
$("form.validate").validate({
rules: {
firstname: {
required: true,
minlength: 2
},
lastname: {
required: true,
minlength: 2
},
email_address: {
required: true,
email: true
},
password: "required"
}
});
}
});
and then , include it in your header as <script src="globalValidation.js " />
before </head>
.
Related Query
- JQuery validation plugin not accepting hypenated element name?
- jquery validation plugin error
- Input type=file is not passing to php page using Jquery Validation Plugin
- jquery form validation plugin rule to check value of field
- Adding own rule in jquery validation plugin
- jQuery Validation plugin custom method using regex
- Jquery validation plugin + php action not working
- Regex with condition in JS for jquery plugin validation engine using sublime text
- jquery validation plugin using conditons
- jQuery Validation plugin groups option issue
- jQuery Validation plugin -- add error class to additional elements
- Jquery form validation not working no plugin used
- jQuery - Validation plugin submitting form in error
- errorPlacement in jQuery Validation plugin with other options
- Multiple rules with jQuery Validation plugin
- Disable multiple submits on jQuery Validation Plugin
- jquery validation plugin not firing at all
- jquery mobile plugin for encryption/decryption
- jQuery Validation on Select List themed with jQuery UI SelectMenu Plugin
- jQuery Form Validation Plugin : Return false on error
- Jquery Validation Plugin - For numeric field only in certain circumstances
- How to make jQuery validation plugin work for drop-down in IE
- Trouble getting jQuery Validation plugin to work
- I can't Validate Form in Jquery Validation plugin
- jQuery validation plugin addMethod to be accessible through attributes
- Does jquery validation Plugin validate alphabets/characters
- jQuery Validation Plugin and Error Placement Issues
- jquery validation plugin addClass to invalid fields
- invalidHandler on next button with jQuery validation plugin
- Using jquery week calendar plugin with Jquery mobile
- jQuery Validation Error Messages are not being displayed in jQuery Mobile Pages
- jQuery plugin doesn't pass HTML validation
- Using jQuery Form: how to disable AJAX and use the plugin for validation only?
- JQuery Validation Plugin - Cannot get resetForm to work
- Validate form with jquery validation plugin
- jQuery Validation using third party plugin
- Remote validation of jquery validation plugin is breaking in jquery 1.5?
- jQuery validation plugin question
- How to disable an input with jQuery Validation Plugin
- jQuery validation plugin for two fields
- improve my jquery validation plugin code
- jQuery validation plugin , add custom method
- send ajax request after successfull validation using jquery validate plugin
- Error message ''$.metadata' is null or not an object.' using a validation plugin in jQuery
- Can't Submit Form With Simple Validation with the JQuery Form Plugin
- jQuery Smart Wizard v4 Step Validaton using jquery validation plugin
- Handle validation jquery after paste event in mobile device
- Use jquery validation plugin to validate complex array of input
- How to use custom function in jQuery Validation Plugin
- Validate dependent select options with jQuery Validation plugin
More Query from same tag
- Jquery Auto trigger click after x seconds
- Change a Background-Image Url to an Input Field's value
- Get selected checkboxes values from table and pass those values into ajax
- How to send custom header on next click of ajax call in datatable?
- JQuery: on click listener doesn't keep instanced variables from loop
- Jquery die() method is not working on dynamically generated button in IE7
- select2 (v4.0.0) - chained selection not working?
- jScrollPane autoReinitialise and animateScroll
- Ajax response redirect
- To use console window in chrome to execute .click() command
- Attach two success functions to an AJAX call (for queueing purposes)
- How to resolve issue with livequery using JQuery
- datepicker date format...I've read the other posts
- Centre content vertically unless larger
- Display none not working Laravel
- Bootstrap toggle sidebar point the active tab from outside tab
- click on certain area in picture is supposed to make a border appear
- Iterate json elements in javascript
- JQuery Colorbox in IE6 - missing border
- Print different part of a page using CSS
- JS Replace Text
- Can't find the first direct child element of a div
- Can I select in JQuery id & class own by the same element?
- jquery data table how to populate on ajax request
- Display image using Jquery "find"
- Partial Update a list with AJAX
- How to parse json response for ajax request?
- Bootstrap datepicker not appearing when clicked
- How to Manage This Enter Key Event with three Different Situation
- Calculate percentage based on sequence