Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sprawdzanie()
- {
- document.getElementById("zamowienie").onsubmit = function()
- {
- if(document.getElementById("Imię").value == "")
- {
- document.getElementById("blad").innerHTML = "Uzupełnij imię";
- return false;
- }
- else if(document.getElementById("Nazwisko").value == "")
- {
- document.getElementById("blad").innerHTML = "Uzupełnij nazwisko";
- return false;
- }
- }
- }
- window.onload = function()
- {
- sprawdzanie();
- }
- function regulamin()
- {
- document.getElementById("zamowienie").onsubmit = function()
- {
- if(document.getElementById("regulamin").checked == true)
- {
- document.getElementById("blad").innerHTML = "";
- return true;
- }
- else
- {
- document.getElementById("blad").innerHTML = "Uzupelnij regulamin";
- return false;
- }
- }
- }
- window.onload = function()
- {
- regulamin();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement