for the controlling field: onchange=>'toggle_display(this.value)' for MyTextField: id=>'MyTextField'