In my UI I have a checkbox. I want to load and show the datagrid (load the data) only when I check the checkbox and hide the grid if it is unchecked.
My UI looks something like this
Can anyone let me know how can I implement this?
In my UI I have a checkbox. I want to load and show the datagrid (load the data) only when I check the checkbox and hide the grid if it is unchecked.
My UI looks something like this
Can anyone let me know how can I implement this?
Copyright © 2021 Jogjafile Inc.
Here is the working DEMO to dynamically create the grid and show / hide only if checkbox is checked
Below is the code snippet from the DEMO:
HTML:
JS: