LyndonOHRC
Programmer
I'm trying to dynamically change the value of this tag when clicking on another element on this document. It wasn't working and I wasn't getting an error. So, to trouble shoot I placed this alert in the onclick event of the tag.
In example (1) I get an empty alert box.
When I change it to example (2) I GET 0 in the alert box.
I'm missing something. Any help appreciated.
Lyndon
In example (1) I get an empty alert box.
When I change it to example (2) I GET 0 in the alert box.
I'm missing something. Any help appreciated.
Code:
<form name="getSSN1" id="getSSN1" action="IRSLookup.cfm" method="post" enctype="multipart/form-data">
1. <input type="text" size="35" id="RECIPIENT2" name="RECIPIENT2" value="ABC" onclick="alert(document.getElementById(this.id).value)">
2. <input type="text" size="35" id="RECIPIENT2" name="RECIPIENT2" value="ABC" onclick="alert(document.getElementById(this.id).value.length)">
</form>
Lyndon