It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Check BOx Script

Check BOx Script

Postby robertlopez on Wed Nov 07, 2007 11:16 pm

I have cool script the hides a drop down and once you check it it shows you the qty of drop down, there a total of 3 but would like to know if there is a tha once one is selected the other 2 are disables or you cant check them until you un check the checkbox, i tried using a radio button but didnt solve the probel please help: Code:

<STYLE TYPE="text/css">
#6x4Group {visibility:hidden}
#6x7Group {visibility:hidden}
#6x9Group {visibility:hidden}

</STYLE>
<SCRIPT LANGUAGE="JavaScript">
function toggle(chkbox, group) {
var visSetting = (chkbox.checked) ? "visible" : "hidden"
document.getElementById(group).style.visibility = visSetting
}

function swap(radBtn, group) {
var group2VisSetting = (group == "group2") ? ((radBtn.checked) ? "" : "none") : "none"
var group3VisSetting = (group == "group3") ? ((radBtn.checked) ? "" : "none") : "none"
document.getElementById("group2").style.display = group2VisSetting
document.getElementById("group3").style.display = group3VisSetting
}
</SCRIPT>
robertlopez
 
Posts: 0
Joined: Wed Nov 07, 2007 11:11 pm

Who is online

Users browsing this forum: No registered users and 6 guests