Hi I wish to disable/enable HTML form elemnts in an ASP application.
Is it possible access the content of html form with javascript by using anything other than the forms name attribute. For example is it possible to use the ID attribute in a form html tag to identify different form elements.
<script>
document.formname.elementname.disabled
</script>
<input type="checkbox" name="Option22" id="chk1">
or is it possible as in this example i found on the net to have multiple name attributes for one form element?
<input name="test2" type="submit" value="Submit" name="B1">
thanks
Angus
Is it possible access the content of html form with javascript by using anything other than the forms name attribute. For example is it possible to use the ID attribute in a form html tag to identify different form elements.
<script>
document.formname.elementname.disabled
</script>
<input type="checkbox" name="Option22" id="chk1">
or is it possible as in this example i found on the net to have multiple name attributes for one form element?
<input name="test2" type="submit" value="Submit" name="B1">
thanks
Angus