Skip to content
Advertisement

How to save / keep checkbox checked?

I’m working on web application project (clinic & laboratory) it’s all about sending tests. i used code below to select the test category first then the test name which related in this category. but when i moving to another category. the old one with selected input will reset . who to save them temporary before sending it to data base? i’m still newbie at ajax.

enter image description here

JavaScript

Advertisement

Answer

As per your requirement you have to do below changes.

In function file add onchange event

JavaScript

In Dashboard file add that javascript function

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement