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) {
alert();
if (data == true)
{
$(".testchk").is(':checked');
}
//$('#minQotId').html(data);
}
});
};
script>
it is not caaling the javascript function even....
Jaima JosephPosted Jun 17, 2014, 8:07 AM
Srikanth ReddyPosted Jun 17, 2014, 4:13 AM
code to check radio button in javascript is
$(".testchk").prop("checked",true);