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 8810565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:09:00+00:00 2026-06-14T03:09:00+00:00

i have no idea why in my mvc application when i do return true

  • 0

i have no idea why in my mvc application when i do return “true” value to the check-box in view page why its tic sign is not appearing ? need help with this.

view page

<div id="maindiv">
<%: Html.CheckBoxFor(m => m.status)%>
<%: Html.LabelFor(m => m.status)%>
</div>

this is the script to set data to for checkbox

<script type="text/javascript">
   $('#status').val(true);
   alert(" active " + $('#status').val());
</script>
  • 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-06-14T03:09:01+00:00Added an answer on June 14, 2026 at 3:09 am

    Instead of $('#status').val(true) try;

    $('#status').prop('checked', true); //checked
    $('#status').prop('checked', false); //unchecked
    

    Or for jQuery 1.5 and below

    $('#status').attr('checked','checked');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Anyone have idea how to pass value from iPhone application to the REST-Webservice using
I have an Idea to develop a java Swing application using the MVC pattern.
I am working on ASP.net MVC 3.0 Razor View Engine Application. I have a
The idea of MVC itself seems clear to me but I have trouble understanding
I have idea to write errors from my application to the Windows Event Viewer
I have no idea how to pass a value from jtable1 to jtable2 .
I have a ASP.NET MVC 4 application with Web API. It's working great. But
I have a weird need in an ASP.NET MVC 3 application which blocks my
I have an ASP.NET MVC 3 Web Application using Linq-to-SQL for my data access
today I have deployed my first MVC 2 application on Windows Server 2008, and

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.