Link to home
Start Free TrialLog in
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.
Avatar of Noah
Noah
Flag of Singapore image

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
Avatar of Peter Chan
Peter Chan
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of puneet kumar
puneet kumar

ASKER

You guys are very helpful.