Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function validation()
- {
- //var validate = true;
- var collection = $(".requriedvalidation");
- collection.each(function() {
- var currentfield = $(this).val();
- if(currentfield == '')
- {
- $(this).find('.errorMessage').show(); ---it not displaying error msg
- //$(this).addClass('active');
- $(this).appendTo('.errorMessage');
- //$(this).after($('.errorMessage')).show();
- //alert('Requried Field');
- //validate = false;
- }
- });
- //$('form#admin-settingsconfig-form').submit();
- }
Add Comment
Please, Sign In to add comment