Sep 24, 2009, 3:45 AM
[CLOSED] checkbox check client side
hi,
i have checked the checkbox and radio buttons in clientside using below code.. The code runs without any error, but checkbox and radion buttons is not checked.. plz check my code
by ram
i have checked the checkbox and radio buttons in clientside using below code.. The code runs without any error, but checkbox and radion buttons is not checked.. plz check my code
by ram
html:
<ext:CheckboxGroup
ID="CheckboxGroup3"
runat="server"
FieldLabel="Multi-Column"
ColumnsNumber="3">
<Items>
<ext:Checkbox ID="Checkbox12" runat="server" BoxLabel="Item 1" />
<ext:Checkbox ID="Checkbox13" runat="server" BoxLabel="Item 2" />
<ext:Checkbox ID="Checkbox14" runat="server" BoxLabel="Item 3" />
<ext:Checkbox ID="Checkbox15" runat="server" BoxLabel="Item 4" />
<ext:Checkbox ID="Checkbox16" runat="server" BoxLabel="Item 5" />
</Items>
</ext:CheckboxGroup>
<ext:RadioGroup ID="RadioGroup1" runat="server" FieldLabel="Auto Layout">
<Items>
<ext:Radio ID="Radio4" runat="server" BoxLabel="Item 1" />
<ext:Radio ID="Radio5" runat="server" BoxLabel="Item 2" />
<ext:Radio ID="Radio6" runat="server" BoxLabel="Item 3" />
<ext:Radio ID="Radio7" runat="server" BoxLabel="Item 4" />
<ext:Radio ID="Radio8" runat="server" BoxLabel="Item 5" />
</Items>
</ext:RadioGroup>
js:
<script type="text/javascript">
function Check()
{
CheckboxGroup3.items.items[1].checked=true;
CheckboxGroup3.items.items[2].checked=true;
}
function Radio()
{
RadioGroup1.items.items[1].checked=true;
}
</script>