Jquery with toggle , add "required" attribut into input field when div visible and remove it when its hidden
i'm new with jquery and i have a problem with my codes, i would make the checkbox as a toggle with jquery, and when the checkbox "clicked" and the toggle shows the div, then add required attribut into the checkbox…