+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How do I make a checkbox "checked"?

How do I make a checkbox "checked"?

3 posts, 1 answered
  1. Troy Lawrence
    Troy Lawrence avatar
    56 posts
    Registered:
    07 Jan 2010
    28 Jan 2010
    Link to this post
    Everytime I put the following code into a sitefinity page it removes the "checked" status for the checkbox.  Is there any way around this?

    I input:
    <input name="Special Promotions" type="checkbox" value="" checked class="checkbox"/>

    Sitefinity renders:
    <input name="Special Promotions" type="checkbox" value="" class="checkbox"/>


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Jan 2010
    Link to this post
    Hello Troy Lawrence,

    You can try this

    <input type="checkbox" id="CheckBox1" checked="checked" />

    or

    <input type="checkbox" checked="checked" />


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Answered
  3. Troy Lawrence
    Troy Lawrence avatar
    56 posts
    Registered:
    07 Jan 2010
    28 Jan 2010
    Link to this post
    That worked!  Thanks for your help.


Register for webinar
3 posts, 1 answered