Hide or display a button according to row count of a table

Posted by kawtousse on Stack Overflow See other posts from Stack Overflow or by kawtousse
Published on 2010-06-16T13:34:29Z Indexed on 2010/06/16 13:52 UTC
Read the original article Hit count: 102

Filed under:

Hi, i have a HTML table and a button send.

First of all the send button must have this style: style.display="none".

But if the table has at least one row the button should be displayed (block/inline);

I still have no idea how to relate between the table and the button. I try to use JavaScript but i should think about a function and I don't found any of it to apply at type table. Thinking about CSS still also hard since I cannot find a relation between the table and the button.

© Stack Overflow or respective owner

Related posts about JavaScript