Hazel Mahmud

Hazel Mahmud

  • 1.4k
  • 315
  • 69.7k

Keep single checkbox stay checked after refreshing the page?

Aug 29 2019 12:01 AM
Can anyone help to make checkbox stay when page refresh. i have a bootstarp modalpopup that has bootstrap checkbox in it. i need to make checkbox stay checked when i click a button a when the popup pop... Please help. below are my script..
  1. $(document).ready(function () {  
  2. var $arrT = $('#<%=GridView1.ClientID %>').find('input:image[id$="ImgBtnEdit"]');  
  3. $($arrT).click(function () {  
  4. var text = $("#<%= TextBox1.ClientID %>").val();  
  5. var comMeet = "Meeting";  
  6. if (text === comMeet) {  
  7. $('input[value="M"]').prop("checked"true)  
  8. }  
  9. });  
  10. });  
  11. </script>

Answers (1)