aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Disable a radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disable a radio button" Watch "Disable a radio button" New topic
Author

Disable a radio button

river down
Greenhorn

Joined: Dec 11, 2002
Posts: 21
Hi!
How will you disable a radio button upon loading of the page....
Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
look at this
remove the _ from on_click

<html>
<head>
<script>
dis=true;
function DisableIt(x){
if(dis){x.checked=false;}
}
</script>
</head>
<body>
<form name="A">
<input type="radio" name="B" value="1" on_click="DisableIt(this)" >
</form>
</body>
</html>
river down
Greenhorn

Joined: Dec 11, 2002
Posts: 21
Thanks a lot...I'll try that...though I pretty much figure out the solution my way ...but I can try if it does not work...thanks for the help...
bye...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disable a radio button