How To Show And Hide Input Fields Based On Radio Button Selection
here my code
function yesnoCheck() {
if (document.getElementById('yesCheck').checked) {
document.getElementById('ifYes').style.display = 'block';
}
else document.getElementById('ifNo').style.display = 'block';
}
Yes
No
If yes, explain:
What can we do to accommodate you?
What can we do to accommodate you?
other 3
other 4
Output : [Getting error like this]
Yes No
other 4
If yes, explain:
What can we do to accommodate you?
What can we do to accommodate you?
What can we do to accommodate you?
other 3other 4
MY REQUIREMENT:
if I click yes... things to me
Yes No
other 4
If yes, explain:
What can we do to accommodate you?
other 3What can we do to accommodate you?
other 4
if I click no... things to me
Yes No,
other 4
What can we do to accommodate you?
other 3other 4
Deepak VermaPosted May 21, 2018, 3:18 AM