Check element selected

Checks if a radio button, a checkbox or an option element is selected.