title: How to use javascript to include struts html tag?
body: <p>I have a check box and a text box.
  I have used struts tags  and </p>
  
  <p>Now i need to validate that if the check box is checked, i should gray out (disable) the text box. If it is unchecked the text box shold take phone numbers.</p>
  
  <p>I did lik this, i called a java script on click of check box and did a innerHtml based on wheather checkbox ix checked or not.</p>
  
  <p>var status_check=document.getElementById("line1Checked").checked;
       if(status_check==true){
       document.getElementById("line1").readonly="true";
       }
       else{
       document.getElementById("line1").readonly="false";
       }</p>
  
  <p>I shud make the text box readonly if the check box is selected.
  This is how the text box is defiened,
  </p>
  
  <p>Please suggest..</p>