[thelist] JavaScript on an HTML Form
jsWalter
jsWalter at torres.ws
Tue Apr 13 16:35:01 CDT 2004
Sure, here ya go!
Walter
================
<script language='JavaScript'
type='text/javascript'>
function openItems()
{
objTB = document.getElementById ( 'quantity' );
objTA = document.getElementById ( 'description' );
objTB.disabled = ( objTB.disabled ) ? false : true;
objTA.disabled = ( objTA.disabled ) ? false : true;
}
</script>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form action="fubar.asp">
Order:
<input type="checkbox"
name="order"
id="order"
value=""
onclick="openItems()" />
<br />
Quantity:
<input type="text"
name="quantity"
id="quantity"
disabled>
<br />
Description:
<textarea cols="5" rows="5"
name="description"
id="description"
disabled></textarea>
</form>
More information about the thelist
mailing list