Skip to content

javascript and jQuery Validation Plugin for Turkish identity validation

Notifications You must be signed in to change notification settings

salihsagdilek/T.C.-Identity-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

javascript and jQuery Validation Plugin for Turkish identity validation

vanilla js

TCIdentity(12345678910)

jQuery Validation

declaratively
  <input type="text" name="TCIdentity" value=""
      data-rule-tcno="true"
      data-msg-tcno="gecersiz tc no"
      required />
programmatically
  <input type="text" name="kimlikno" value=""
      required />



$(function() {
  $("#test").validate({
      rules: {
          kimlikno: {
            TCIdentity: true
          },
      },
      messages: {
          kimlikno: {
            TCIdentity:"gecersiz tc no"
          }
      }
  });
});

About

javascript and jQuery Validation Plugin for Turkish identity validation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published