http://www.htmlgoodies.com
<script type="text/javascript">
function codename() {
if(document.formname.check
{
document.formname.textname
}
else
{
document.formname.textname
}
}
//-->
</SCRIPT>
<form action="" method="" name="formname">
<input type="text" disabled size="10" name="textname">
<input type="checkbox" onclick="codename()" name="checkboxname" value="ON">
<input type="submit" value="Add">
<input type="reset" value="Clear">
</form>
Main Topics
Browse All Topics





by: pkumarraPosted on 2008-01-04 at 03:47:42ID: 20581227
You can try this
s)" />
xtField"). disabled = obj.checked;
<input type="text" id="txtField" />
<input type="checkbox" onclick="SetTextStatus(thi
<script type="text/javascript">
function SetTextStatus(obj)
{
document.getElementById("t
}
</script>