Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6967619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:20:43+00:00 2026-05-27T16:20:43+00:00

I have developed a MVC3 application in that I want use the Check boxlist

  • 0

I have developed a MVC3 application in that I want use the Check boxlist in this I have three check boxes. My requirement is when I check the check box it accept only on check box not multiple remaining check box should be unchecked like RadioButton list type.

Please help me… How can I resolve this problem?

Here is my view code

           @{
ViewBag.Title = "MenuCategories";
Layout = "~/Views/Shared/_Layout.cshtml";
 }

  <script type="text/javascript">
$(function () {
    enable_cb();
    $("#ChbkPickup").click(enable_cb);
});

function enable_cb() {
    if (this.checked) {
        $("input.ccc").removeAttr("disabled");
    } else {
        $("input.group1").attr("disabled", true);
    }
}
$(function () {


    $('.example-container > pre').each(function (i) {
        eval($(this).text());
    });
});

 </script>



         @using (Html.BeginForm("OrderCompleted", "Home", FormMethod.Post, new { id = "myForm" }))
             {
                  @Html.ValidationSummary(true)



              Delivery:<input type="checkbox" name="Deliver" value="Deliver" id="Chbkdeliver" />
             Pickup: <input type="checkbox" name="Deliver" value="Pickup" id="ChbkPickup" class="group1"  checked="checked" />
             Dine In:<input type="checkbox" name="Deliver" value="Dinein" class="group1" id="ChbkDinein" />
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:20:44+00:00Added an answer on May 27, 2026 at 4:20 pm

    replace all your javascript tag with this

    <script type="text/javascript">
       $(function () {
          $("#myform :checkbox").click(function(){
            $("#myform input:checked").attr("checked","");
            $(this).attr("checked","checked");
          });
       });
    
     </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My project is a Facebook application developed in asp.net MVC3. I want to check
A little background: I have developed a web application in MVC3 that requires users
I have developed a Facebook application using Flash as3. In this application when ever
I have developed a mobile application using jquerymobile,asp.net mvc3,HTML5. I have a scenario like
Have developed an MVC3 application which monitors when users access static content on the
I have a website developed using ASP.NET MVC3. I now want to expose a
I have an .net c# mvc3 web service application developed wirh visual web developer
I have an ASP.Net MVC 3 application that runs fine when I use the
I have a MVC3 Web Application project that I develop and publish from Visual
I have developed an MVC3 application based around Project Management. The data source is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.