Guest User

Untitled

a guest
Dec 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function validation()
  2. {
  3.  
  4. //var validate = true;
  5. var collection = $(".requriedvalidation");
  6. collection.each(function() {
  7. var currentfield = $(this).val();
  8. if(currentfield == '')
  9. {
  10.  
  11. $(this).find('.errorMessage').show(); ---it not displaying error msg
  12. //$(this).addClass('active');
  13. $(this).appendTo('.errorMessage');
  14. //$(this).after($('.errorMessage')).show();
  15. //alert('Requried Field');
  16. //validate = false;
  17. }
  18.  
  19.  
  20. });
  21. //$('form#admin-settingsconfig-form').submit();
  22. }
Add Comment
Please, Sign In to add comment