Dear All,
I have an application where at the top I have a div id=“title” for the title then in the midlle div id=“map” I have the google map then bottom I have buttons div id=“mainOption”. So what I want is that I want another few div at the right. By default one of the div I will fill up with a combo box and and submit button. The problem I want the div only to be shown when I pressed the button at the bottom div. Below is my code but without the side div.
You could also just use the toggle(), if you truly need a library. But Stephen is right, you can accomplish the same using basic JS with less overhead.
The plain JavaScript commands (without the huge JQuery library) are about as much code as that. It’s only if you want to start adding fadein/out or other animations that you would even consider adding jQuery to perform that task.
if you would like to interchange the effects on the same button, you can use the is:hidden selector to check whether an element is hidden or not and perform your action based on the output of your is:hidden function