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

Posted on 2009-02-23
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

    LVL 19

    Expert Comment

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

    Author Closing Comment

    thx for the link, helped me out.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now