DubsJoy
10-22-2003, 12:24 PM
Hi everyone,
Im in truble with div tag and Netscape 4.7. I want to show a textbox while user clicks a button.
The following code is working well in IE but not in Netscape 4.7
<!-- ---------------- -->
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form method="post" name="frm1">
<input name="AddFiedls" type="button" value="ADD AMOUNT" onClick="AddOrHideAmount()">
<input name="HideShow" type="hidden" value="hide">
<div id="divAmt" style='display:none'>
Amount : <input name="txtAmount" type="text" value="">
</div>
</form>
</body>
</html>
<script>
function AddOrHideAmount()
{
if (document.frm1.HideShow.value == "hide")
{
document.frm1.HideShow.value = "show"
document.getElementById('divAmt').style.display="";
}
else
{
document.frm1.HideShow.value = "hide"
document.getElementById('divAmt').style.display="none";
}
}
</script>
<!-- ------------------- --->
Thanks in advance
Dubs.
Im in truble with div tag and Netscape 4.7. I want to show a textbox while user clicks a button.
The following code is working well in IE but not in Netscape 4.7
<!-- ---------------- -->
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form method="post" name="frm1">
<input name="AddFiedls" type="button" value="ADD AMOUNT" onClick="AddOrHideAmount()">
<input name="HideShow" type="hidden" value="hide">
<div id="divAmt" style='display:none'>
Amount : <input name="txtAmount" type="text" value="">
</div>
</form>
</body>
</html>
<script>
function AddOrHideAmount()
{
if (document.frm1.HideShow.value == "hide")
{
document.frm1.HideShow.value = "show"
document.getElementById('divAmt').style.display="";
}
else
{
document.frm1.HideShow.value = "hide"
document.getElementById('divAmt').style.display="none";
}
}
</script>
<!-- ------------------- --->
Thanks in advance
Dubs.