So if this qstring var is set then i need to check a certain radio button
ive tried the following :
$("#AcctRB").attr('checked', 'checked');
$('input[id=AcctRB]:eq(1)').attr('checked', 'checked');
which does not work. I might have a syntax error
Here is the rb :
<input type="radio" onclick="accountShow()" id="AcctRB" runat="server" name="GuestAndAccountRB" enableviewstate="true" />Account
<% If Request.QueryString("login") = "guest" Then%>
<script type= "text/javascript">
$(".new-accnt-ad").show("slow");
$(".accountPanel").hide("slow");
$(".guestPanel").show("slow");
$("#AcctRB").attr('checked', 'checked');
</script>
<%Else%>
<script type= "text/javascript">
$(".new-accnt-ad").hide("slow");
$(".accountPanel").show("slow");
$(".guestPanel").hide("slow");
$('input[id=AcctRB]:eq(1)').attr('checked', 'checked');
</script>
<% End If %>
This simply does not check the radio button in either case ive tried.