jQuery Toggle Form Buttons

This is a quick note of how to create buttons that can toggle forms using jQuery. I used this in the F5 Dashboard to display different forms.

The user can click on the top or bottom to reveal that. Then clicking the other button will hide the first to only reveal the second.

Example JSFiddle

I have a jsfiddle.net example that is useful for demonstration purposes of toggling a form with a button.
https://jsfiddle.net/pairdocs/3bxq1s6a/20/

HTML

jQuery

CSS

F5 Dashboard

The F5 Dashboard is slightly different to the jsfiddle.net example as it has two buttons.

HTML

jQuery

CSS

Leave a Comment

Your email address will not be published. Required fields are marked *