Forum Moderators: coopster
<INPUT type="hidden" [b]id="status"[/b] value = "Everything is Fine" />
Then to change the 'value', it would be something like this:
document.getElementById('status').value = "text";
<INPUT type="hidden" id = "status" class = "message" STYLE="background-color: #339999; border: 0; color: white;" value = "TN BCBS is good." />
Now when the checkbox is checked I call an external php file with javascript. It runs some checks and if there are any errors it passes a message back to a JavaScript Alert box. I.E. if("a file exists in a certain spot") I echo "alert('Warning the file exists')"; I have a header conent type in php that allows that to run as JavaScript. I tried to echo the
document.getElementById('status').value = "text";
to change the type of the textbox because I only want to do it if one of my php if statements is false. Any suggestions, the error message I receive is document.getElementById('status') has no properties, but it is there. Thanks,