Avatar of puneet kumar
puneet kumar
 asked on

Show and Hide table based on button click

how can i show and hide one table based on a button click in jsp page.
* servletJavaJSPJava EE

Avatar of undefined
Last Comment
puneet kumar

8/22/2022 - Mon
Noah

Hi there! :)

There are many ways you can do this. One of the ways is to use document.getElementById('div'). You may refer to the link below, it may be useful.

Reference: https://www.roseindia.net/javascript/javascriptexamples/javascript-show-hide-table.shtml
ASKER CERTIFIED SOLUTION
Peter Chan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
CEHJ

puneet kumar: a lot of your recent questions have as their answers something written in JavaScript. You need to know why and add that as a Topic Area to the questions or you might well miss good and correct answers
puneet kumar

ASKER
You guys are very helpful.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck