Skip to content

Instantly share code, notes, and snippets.

@Zillionx
Zillionx / show_hide_input.html
Last active September 11, 2015 21:16
How To Show And Hide Input Fields Based On Radio Button Selection
<html>
<!-- http://stackoverflow.com/questions/17621515/how-to-show-and-hide-input-fields-based-on-radio-button-selection -->
<head>
<script type="text/javascript">
function yesnoCheck() {
if (document.getElementById('yesCheck').checked) {
document.getElementById('ifYes').style.visibility = 'visible';
}
else document.getElementById('ifYes').style.visibility = 'hidden';