Reputation: 189
I Use this Code to check a char is contain in string if true checked checkbox but it always return true.why??
//it is mvc project and after execution it become like this:if ($("123:contains(1)"))
if ($("@Model.VillageAR.IncomeLocation.ToString():contains(1)"))
{
$('#IncomeLocation1').attr('checked', true);
}
Upvotes: 0
Views: 122