@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<script src="~/Scripts/jquery-3.3.1.min.js"></script>
<script src="~/Scripts/jquery.easyui.min.js"></script>
<script src="~/Scripts/easyui-lang-zh_CN.js"></script>
<link href="~/Content/EasyUI/themes/icon.css" rel="stylesheet" />
<link href="~/Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
</head>
<body>
<h2>SwitchButton Actions</h2>
<p>Click the buttons below to perform actions.</p>
<div style="margin:20px 0;"></div>
<div style="margin:20px 0;">
<a href="#" class="easyui-linkbutton" οnclick="$('#sb').switchbutton('disable')">Disable</a>
<a href="#" class="easyui-linkbutton" οnclick="$('#sb').switchbutton('enable')">Enable</a>
</div>
<input id="sb" class="easyui-switchbutton" checked style="width:100px;height:30px">
</body>
</html>