ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Set Default Value in HTML CheckBox on Page Load using jQuery<p>Hi&nbsp;Ruben12345,</p> <p>Refer below code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;div class=&#34;col-sm-6&#34;&gt; &lt;div class=&#34;input-group&#34;&gt; &lt;span class=&#34;input-group-addon&#34; style=&#34;width: 41px&#34;&gt;&lt;i class=&#34;fa fa-id-card&#34;&gt;&lt;/i&gt; &lt;/span&gt; &lt;input type=&#34;checkbox&#34; class=&#34;form-control&#34; onload=&#34;true&#34; data-toggle=&#34;toggle&#34; id=&#34;Active&#34; data-on=&#34;True&#34; data-off=&#34;False&#34; checked=&#34;checked&#34; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;link rel=&#34;stylesheet&#34; href=&#34;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&#34; /&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(document).ready(function () { $(&#34;input[id=Active]&#34;).attr(&#39;value&#39;, &#39;True&#39;); $(&#34;input[id=Active]&#34;).change(function () { if ($(this).prop(&#34;checked&#34;)) { $(this).attr(&#39;value&#39;, &#39;True&#39;); } else { $(this).attr(&#39;value&#39;, &#39;False&#39;); } }); }); &lt;/script&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/656728/Set-Default-Value-in-HTML-CheckBox-on-Page-Load-using-jQuery/https://www.aspforums.net:443/Threads/656728/Set-Default-Value-in-HTML-CheckBox-on-Page-Load-using-jQuery/Thu, 22 Nov 2018 01:16:48 GMT