<script language=javascript> $(document).ready(function() { if ($("#HiddenField1").val() != null && $("#HiddenField1").val() != "") { var strArray = []; var strVal = $("#HiddenField1").val(); strArray = strVal.split(','); for (var i = 0; i < strArray.length; i++) { try { $("input[value='" + strArray[i] + "']").attr("checked", "checked"); } catch (e) { } } } }) </script>