Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script>
function showHide(elementid){
var obj=document.getElementById(elementid),frm=obj.getElementsByTagName('FORM')[0],els=frm.elements,z0=0;
if (obj.style.display == 'none'){
obj.style.display = '';
obj.removeAttribute('disabled');
}
else {
obj.style.display = 'none';
}
for (;z0<els.length;z0++){
els[z0].removeAttribute('disabled');
if (obj.style.display == 'none'){
els[z0].disabled='disabled';
}
}
}
</script>
</head>
<body>
<a href="javascript:showHide('details')">Click to show</a>
<div id="details" style="display:none">
<form>
<fieldset>
<p>
<input type="text" class="appartment" size="20" name="appartment[]" value="" placeholder="Subindex" />
</p>
</fieldset>
</form>
</div></head>
<body>
</body>
</html>
Bookmarks