snakeeyes1978
Programmer
Hi there. Got a bit of a problem with Javascript. I have a series of ten fields which are of type 'hidden' when the page loads. When a user clicks on a checkbox, it executes the script below and passes in the name of the hidden field which I want displayed, but it doesn't seem to work. All I need to do is tell Javascript to change the field passed into the function from type 'hidden' to type 'text' thus making it visible - any ideas?
function Other(field) {
document.getElementById(field).type = 'text';
}
function Other(field) {
document.getElementById(field).type = 'text';
}