problem with "div" in a "table" does any one know? PLEASE

Discussion in 'Javascript' started by avihaimar, Feb 20, 2005.

  1. avihaimar

    avihaimar Guest

    hello
    i have the code below:
    <html>
    <body>
    <table>
    <div id="div1" style="display :none">
    <tr>
    <td>
    uuu
    </td>
    </tr>
    </div>
    </table>
    </body>
    </html>

    i want in table tag to display or not display ( according to some
    bussnies rules ) a section of some rows.
    but the tag div dosnt work for me inside the table tag.
    if i remove the table tag it is work and not diplay the code inside
    the div.

    does any one know how to resolve this problem.
    i dont want to put style on every row in the table.
    i want to wrap a section of row in order to control on them via
    javascript


    thank u a lot
    avihaimar, Feb 20, 2005
    #1
    1. Advertising

  2. avihaimar wrote:

    > i have the code below:


    Is your shift key broken?

    > <table>
    > <div id="div1" style="display :none">


    This is invalid HTML. <div> may not be a child of <table>. Make use of
    http://validator.w3.org/

    Possibly <tbody> would suit you better.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
    David Dorward, Feb 20, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    267
  2. Cijo Jose
    Replies:
    1
    Views:
    877
    jayashri
    Jun 26, 2008
  3. phil
    Replies:
    0
    Views:
    120
  4. Adam Knight

    Please Does Any One Know ????

    Adam Knight, Sep 4, 2003, in forum: ASP General
    Replies:
    4
    Views:
    97
    Chris Baldwin
    Sep 5, 2003
  5. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    208
    Gregory Toomey
    Apr 23, 2004
Loading...

Share This Page