Crevier's Tech Toolbox
Home CyberSecurity

toggle more table rows

This demo uses the jquery toggle method to show how to toggle on and off additional rows in a table. There are certainly a few ways you can do this differently, this is just one. Be sure to include the JQuery library in the 'head' section of your web page like this:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

# first last born died
1 george washington 1732 1799
2 john adams 1735 1826
3 thomas jefferson 1743 1826
4 james madison 1751 1836

• View the source of this web page to get the code needed to reproduce the feature explained. •