Hi,
If you are running on IE, you only need to change the button to a box. If not, you have a create a div, place the 'hidden' form elements in it, and then by using the appropriate DOM either rewrite the div or change the innerHTML. (if interested, see the "Introduction to dHTML" script/tutorial at my site -- GrassBlade )
This works in IE 6:
Code:
<script>
function newFunk(formObj) {
formObj.tada.style.visibility = 'visible';
formObj.tadatxt.style.visibility = 'visible';
}
//-->
</script>
</head>
<body>
<form name="myForm">
<input type="button" class="button" value="Update" onClick="newFunk(this.form);">
<input name="tada" type="button" class="button" value="Tada" style="visibility:hidden">
<input name="tadatxt" type="text" class="button" value="Tadatxt" style="visibility:hidden">
Vinny
Bookmarks