Microsoft
Software
Hardware
Network
Question : Select Input Radio Button on page load from javascript or code behind
Have the following code:
<div class="radiobuttons">
<input id="rPublic" runat="server" type="radio" name="Public" value="Public" onclick="Target('Public');
" />Public
<input id="rPrivate" runat="server" type="radio" name="Private" value="Private" onclick="Target('Private')
;" />Private
</div>
How do I make the Public radio button selected on page load. Either using javascript or in my code behind using vb.net. Thanks.
Answer : Select Input Radio Button on page load from javascript or code behind
Code Behind
rPublic.checked=true
JS:
<script>
var rb = document.getElementById("r
Public");
rb.checked=true;
</script>
HTML:
<input id="rPublic" runat="server" type="radio" name="Public" value="Public" onclick="Target('Public');
" checked />Public
Random Solutions
Cannot RDP anymore
Menu settings
Outlook 2007 w/ Exchange 2010 empty folder
Major help is needed customizing the Windows 7 default user profile
ISA denying with blank rule
User's Web-Based AOL Mail is sending spam to all his contacts
delete text from column B that exists in column A - Excel
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
Database on a 64 bit OS - Conection issues
Caml Query on Item versiion History