Code: Select all
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Online/Offline</title>
</head>
<body>
<input type="radio" name="on/off" onclick="online();" /> Online
<br />
<input type="radio" name="on/off" onclick="offline();" /> Offline
<br />
<span id="update"></span>
<script type="text/javascript">
function online(){
document.getElementById("update").innerHTML = "Online";
}
function offline(){
document.getElementById("update").innerHTML = "Offline";
}
</script>
</body>I have three Radios, but one is selected by default to ensure the user has at least one clicked.
But it needs to show extra info - and then to change if another Radio is selected.
So is there something small I can add to just one of these radios or the Javascrpt to do that?