Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body onload="funkcja()">
- <p>Podaj swoje imię: <input type="text" id="imie" onchange="funkcja2()"></p>
- <p>Podaj swoje nazwisko: <input type="text" id="nazwisko" onchange="funkcja3()"></p>
- <p>Podaj swoj wiek: <input type="text" id="wiek"></p>
- <script>
- var x = document.getElementById("imie");
- var y = document.getElementById("nazwisko");
- var z = document.getElementById("wiek");
- function funkcja() {
- y.disabled = true;
- z.disabled = true;
- }
- function funkcja2() {
- y.disabled = false;
- }
- function funkcja3() {
- z.disabled = false;
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement