This is a migrated thread and some comments may be shown as answers.

radio button check and value find in javascript

1 Answer 397 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 07 Jan 2013, 10:03 AM

.cs
                RadioButton Maincon6 = (RadioButton)e.Item.FindControl("Maincon6");
                RadioButton Maincon8 = (RadioButton)e.Item.FindControl("Maincon8");
 
InvFinalamount.Attributes.Add("onblur", string.Format("CalculationAmount('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}');", InvFinalamount.ClientID, DedValue.ClientID, DedInvoiceMinus.ClientID, GetValueSev.ClientID, GstInvoice.ClientID, InvoiceType.ClientID, Maincon6.ClientID, Maincon8.ClientID));

how to get the asp:radio button checked into javascript

.aspx

thanks advance,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Jan 2013, 10:38 AM
Hi,

You can make the radiobutton checked as shown below.
JS:
function CalculationAmount(btn)
{
 var btn = document.getElementById(btn);
 btn.checked = true;
}

Thanks,
Shinu.
Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or