Please help....
I have a list of records in my view and each records there is a corresponding check box too. On page load I want to check the checkbox for each row ,if it is having an entry in some other table.How to do it? I have tried the following javascript which I called the on load event of check box.i.e,
<script type="text/javascript" language="javascript">
function checkCheckbox() {
alert();
var idquot = $("#selquot").val();
alert(idquot);
$.ajax({
url: '@Url.Action("selectCheckbox", "Quote")',
data: {
quotid: idquot
},
success: function (data) {
alert();
if (data == true)
{
$(".testchk").is(':checked');
}
//$('#minQotId').html(data);
}
});
};
</script>
it is not caaling the javascript function even....