How to check a checkbox when an item i a combobox is selected?

Posted on 2009-02-23
Medium Priority
Last Modified: 2013-11-26
I want so when the item with value = 1 is selected in the combobox, the checkbox is checked, and if it is any of the others it gets unchecked.

Right now it just unchecks the checkbox.
<script type="text/javascript">
    function OnClientSelectedIndexChangedHandler(item)
        if( item.Value == "1")
            (document.getElementById("CheckBox_send_email")).checked = true;
            (document.getElementById("CheckBox_send_email")).checked = false;
<telerik:RadComboBox ID="ComboBox_contract_status" runat="server" OnSelectedIndexChanged="ComboBox_contract_status_SelectedIndexChanged"
    Skin="Vista" Width="150px" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedHandler">
        <telerik:RadComboBoxItem runat="server" Text="Ingen Kontrakt." Value="0" />
        <telerik:RadComboBoxItem runat="server" Text="Kontrakt skal sendes." Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Kontrakt sendt." Value="2" />
        <telerik:RadComboBoxItem runat="server" Text="Kontrakt Underskrevet." Value="3" />
    <CollapseAnimation Duration="200" Type="OutQuint" />
<asp:CheckBox ID="CheckBox_send_email" runat="server" Text="Send Email" TextAlign="Left" />

Open in new window

Question by:mSchmidt
LVL 12

Accepted Solution

CB_Thirumalai earned 2000 total points
ID: 23728657
LVL 19

Expert Comment

ID: 23730750
Isn't what you described just a radio button rather than a checkbox?

Author Closing Comment

ID: 31550220
thx for the link, helped me out.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question