Autor | Zpráva | ||
---|---|---|---|
mio Profil * |
#1 · Zasláno: 14. 1. 2013, 15:18:07
Ahojte, ako prosim upravit kod aby sa schovavali aj id cislo_listu, id meno_vlastnika_text a id vlastnik?
<script> function checkForOther(obj) { if (!document.layers) { var txt = document.getElementById("preukazanie"); if (obj.value == "suhlas") { txt.style.display = "inline"; // gives the text field the name of the drop-down, for easy processing txt.name = "sidlo"; obj.name = ""; } else { txt.style.display = "none"; txt.name = ""; obj.name = "sidlo"; } } } </script> <form name="formular" method="POST" action="nextPage.htm"> <select name="sidlo" id="titles" onchange="checkForOther(this)"> <option value="suhlas">súhlas vlastníka so sídlom</option> <option value="najomna">nájomná zmluva</option> </select> </form> <span id="cislo_listu">Číslo listu vlastníctva</span> <input type="text" id="preukazanie" size="21"> <span id="meno_vlastnika_text">Meno vlastníka</span> <input type="text" id="vlastnik" size="20"> Dakujem. |
||
peta Profil |
#2 · Zasláno: 15. 1. 2013, 08:47:10
id = "cislo_listu"; document.getElementById(id).style.display = "none"; id = "preukazanie"; document.getElementById(id).style.display = "none"; id = "meno_vlastnika_text"; document.getElementById(id).style.display = "none"; id = "id cislo_listu"; document.getElementById(id).style.display = "none"; |
||
Časová prodleva: 11 let
|
0