<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<li><a href="#tabs-A">tabs-A</a></li>
<li><a href="#tabs-B">tabs-B</a></li>
<li><a href="#tabs-C">tabs-C</a></li>
<li><a href="#tabs-D">tabs-D</a></li>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/mvc/4.0/jquery.validate.unobtrusive.min.js"></script>
<script src="//code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript">
var statusList = [1,2,3,4]; //Make sure your tablist and this status array is aligned
var selectedStatusIndex = statusList.indexOf(@Model);
if (selectedStatusIndex > -1){
activeIndex = selectedStatusIndex;
disabled:true //disable all tabs
if (selectedStatusIndex === -1){
$("#tabs").tabs("enable"); //enable all tab