Hi,
In Apex 4.1 I am having a hidden checkbox under my ON OFF Switch as shown in the below picture.


When the Checkbox is activated the switch will goes to ON State and Vice versa.
To make this possible i had created a check box and hide that with the help of CSS code display: none
.onoffswitch-checkbox {
display: none;
}
The above functionality is not working in Apex 5. The display:none is not at all showing any results in Apex 5.
Instead I tried to replace display:none with visibility: hidden. But this is creating lot of alignment problems . Because of this alignment issues i need to change a lot of HTML and CSS code.
Please suggest how to make the display : none works in Apex 5.1
Regards,
Roopesh.