//是否被选中验证有选中的设置为true,否设置为false 
        function myCheckbox() {
            flag += 1;
            if (flag%2 == 0){
                $('#isSelf').attr("checked", "false");
                return $('#selectSel').val("true");
                
            }
            else {
                $('#isSelf').attr("checked", "true");
                return $('#selectSel').val("false");
                
            }
        }    

监听:

$(document).ready(function () {
            
            $('#isSelf').attr("checked","checked");
            $('#selectSel').val("true");
        
        });

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-11-25
  • 2022-01-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-06-21
  • 2022-12-23
相关资源
相似解决方案