how do I hide certain part of form
        Posted  
        
            by yogsma
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by yogsma
        
        
        
        Published on 2010-05-25T17:20:20Z
        Indexed on 
            2010/05/25
            17:31 UTC
        
        
        Read the original article
        Hit count: 257
        
I have a form and it contains dropdown box and different div items. Based on selection from dropdown box, I show those div items. But some of the text in those div items are shown when the form is loaded and not when I select the option from dropdown box. The code is somewhat like this
<form>
      <select id="">
          <option value="one"> One </option>
          <option value="two"> Two </option>
          <option value="three"> Three </option>
      </select>
      <div id="onee"> header text ..<table> </table></div>
      <div id="twoo"> header text ..<table> </table></div>
</form>
So when I load the page form with select drop down box is shown , but it also shows header text which is within div. How do I hide that text?
© Stack Overflow or respective owner