Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                 $("form").on("submit", function()
  2.                 {
  3.                     var chk1 = $('input[name="urunaciklamaanlatim"]:checked').length;
  4.                         chk2 = $('input[name="sizinleiletisim"]:checked').length;
  5.                         chk3 = $('input[name="urunzamanteslim"]:checked').length;
  6.                         chk4 = $('input[name="sozlerintutulmasi"]:checked').length;
  7.                         chk5 = $('input[name="geneldegerlendir"]:checked').length;
  8.  
  9.                     if (chk1 <= 0)
  10.                     {
  11.                         // hata verdir.
  12.                     }
  13.  
  14.                     if (chk2 <= 0)
  15.                     {
  16.                         // hata verdir.
  17.                     }
  18.  
  19.                     if (chk3 <= 0)
  20.                     {
  21.                         // hata verdir.
  22.                     }
  23.  
  24.                     if (chk4 <= 0)
  25.                     {
  26.                         // hata verdir.
  27.                     }
  28.  
  29.                     if (chk5 <= 0)
  30.                     {
  31.                         // hata verdir.
  32.                     }
  33.                 });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement