SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. function sprawdzanie()
  4. {
  5.     document.getElementById("zamowienie").onsubmit = function()
  6.     {
  7.         if(document.getElementById("Imię").value == "")
  8.         {
  9.             document.getElementById("blad").innerHTML = "Uzupełnij imię";
  10.             return false;
  11.         }
  12.             else if(document.getElementById("Nazwisko").value == "")
  13.         {
  14.             document.getElementById("blad").innerHTML = "Uzupełnij nazwisko";
  15.             return false;
  16.         }
  17.     }
  18. }
  19. window.onload = function()
  20. {
  21.     sprawdzanie();
  22. }  
  23.  
  24.  
  25. function regulamin()
  26. {
  27.     document.getElementById("zamowienie").onsubmit = function()
  28.     {
  29.         if(document.getElementById("regulamin").checked == true)
  30.         {
  31.             document.getElementById("blad").innerHTML = "";
  32.             return true;
  33.         }
  34.         else
  35.         {
  36.             document.getElementById("blad").innerHTML = "Uzupelnij regulamin";
  37.             return false;
  38.         }
  39.     }
  40. }
  41. window.onload = function()
  42. {
  43.     regulamin();
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top