Show hide javascript
<script>
function checkForOther(obj) {
if (!document.layers) {
var txt = document.getElementById("otherTitle");
if (obj.value == "other") {
txt.style.display = "inline";
// gives the text field the name of the drop-down, for easy processing
txt.name = "selTitle";
obj.name = "";
} else {
txt.style.display = "none";
txt.name = "";
obj.name = "selTitle";
}
}
}
</script>
<form name="frm1" method="POST" action="nextPage.htm">
<select name="selTitle" id="titles" onchange="checkForOther(this)">
<option value="Mr.">Mr.</option>
<option value="Ms.">Ms.</option>
<option value="other">Other</option>
</select>
<input type="text" id="otherTitle" style="display:none;">
... more fields ...
</form>
Keresés
Hirdetések
Hirdetes
Ki van még itt?
Oldalainkat 2 vendég böngészi
Stats
Tartalom találatai : 34202


