title: Using the 'property' attribute of html:select tag as replacement for id in javascript document.getElementById['']
body: <p>I am working on Struts 1.1 framework.
  In JSP Page, I am using a <code>&lt;html:select property="something"&gt;</code> tag.</p>
  
  <p>My doubt:
  In javascript we generally apply some properties to an element by using its id attribute as an identifier.<br>
  for eg.<br>
  html       = <code>&lt;p id="x"&gt;&lt;/p&gt;</code><br>
  javascript = <code>document.getElementById['x'].style.display = "block";</code></p>
  
  <p>I was doing reverse engineering of this code and since my application is very vast, due to some reasons I am not able to clearly find out if its true whether we can use the property attribute of the struts tags in place of id while identifying it.<br>
  for eg.<br>
  struts tag = <code>&lt;html:select property="abc"&gt;&lt;/html:select&gt;</code><br>
  javascript = <code>document.getElementById['abc'].style.display = "block";</code></p>
  
  <p>(Note that I know we can use the <code>styleId</code> attribute in struts tags to define an id. I am only trying to find out if its possible this way)</p>