- Thu May 21, 2015 9:44 pm
#783173
Hi everybody!
There is no documentation about how to acces radio button in the wiki, so i'm trying to give my solution here.
I hope it can help someone.
There is no documentation about how to acces radio button in the wiki, so i'm trying to give my solution here.
I hope it can help someone.
Code: Select all
$("#radioName").change(function () {
if ($('input[value=0]').prop("checked")){
document.getElementById('fieldName').style.display = "none"; //hide if value 0 is checked
} else {
document.getElementById('fieldName').style.display = ""; //show if value 0 is unchecked
}
});