This topic is locked

How to set check box using a custom button

12/15/2014 1:40:16 AM
PHPRunner General questions
R
richardholley1 author

Hello all,

I would like to know how to set multiple check boxes to be ticked when a custom button is pressed please. See image below


I have a child table with multiple bit fields, each bit field is set using a check field, the end users have requested a button that can tick all the fields before the record is saved to save them time. I know you can set the check fields to be on by default but this would mean that the users are not looking and using the checklist.
Richard

Sergey Kornilov admin 12/15/2014

There is no image. Elaborate what checkboxes you talking about.
Just in case here is a generic example of setting checkboxes with jQuery that you can use in your code:

http://stackoverflow.com/questions/426258/checking-a-checkbox-with-jquery