Yes, you can use this technique with other form elements by listening to their respective events (click for checkboxes and change radio buttons) and using similar logic to show or hide the div.