Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- </head>
- <body>
- <H1>FORMULARZ</H1>
- <script>
- function Walidacja(){
- var login=document.getElementById("login").value;
- var haslo=document.getElementById("haslo").value;
- if(login.length < 10) {
- alert("Za krótki login")
- }
- if(haslo.length < 10) {
- alert("Za krótkie haslo")
- }
- if(login.length > 10) {
- alert("Długość loginu odpowiednia")
- }
- if(haslo.length > 10) {
- alert("Długość hasła odpowiednia")
- }
- }
- </script>
- <form action="#" id="form1">
- <select name="listaaut" id="lista">
- <option value="volvo">Volvo</option>
- <option value="audi">Audi</option
- <option value="bmw">Bmw</option>
- <option value="porsche">Porsche</option>
- </select>
- <br><br>
- <input type="checkbox" name="pojazd" value="samochod">samochod<br>
- <input type="checkbox" name="pojazd" value="rower">rower<br>
- <input type="checkbox" name="pojazd" value="motor">motor<br>
- imie:<br>
- <input type="text" name="imie"><br>
- nazwisko:<br>
- <input type="text" name="nazwisko"><br>
- <br>
- nazwa uzytkownika:<br>
- <input type="text" id="login"><br>
- haslo uzytkownika:<br>
- <input type="password" id="haslo">
- <input type="button" value="sprawdz" onClick="Walidacja()">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement