Write a simple JavaScript program in which the user selects choices from some of the following: checkboxes, radiobuttons, pushbuttons, selections lists, and then the user clicks a submit button, which then prints the choices that the use selected. Very simple JavaScript. Solution Male Female Other Javascript - function validate() { var val=document.getElementByName(\"gender\"); alert(\"you selected\"+val); }.