Hi,
Please help....
@foreach (var item in Model)
{
<td>
<input type="checkbox" id="chk" name="chk" title="@item.QuoteId" value="@item.QuoteId" class="testchk checkbox" onload="checkCheckbox();"/>
</td>
<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) {
if (data == true)
$(".testchk").is(':checked');
}
//$('#minQotId').html(data);
});
};
</script>