What is HTML code to make everything disappear when submit button is clicked?

Jennifer

New member
Got a table with picture, description, and submit button. Want all of this information to disappear when the submit button is clicked. How do I do this? What is the code?
<input type="submit" value="Submit" onclick="javascript:void
(document.body.style.
display='none')" />

This works, but it erases the entire page leaving it just a white screen. I only want the table to disappear.
 
<input type="submit" value="Submit" onclick="javascript:void
(document.body.style.
display='none')" />

Remove the line break between void and ( as well as style. and display.

Hope that helps!
 
Back
Top