Click here to Skip to main content
15,898,222 members

Comments by Member 12137386 (Top 4 by date)

Member 12137386 7-Jan-16 10:29am View    
Thanks for the solution it worked :)
Member 12137386 6-Jan-16 11:13am View    
no still the same error message .. service returing few other values also Gender is one in that response looks like this

Age 3
Altered false
HuntingNumber null
Name James
Sex "N"
Member 12137386 6-Jan-16 10:21am View    
Thanks for the quick response .. I replaced and tried but it is thorwing a runtime exception
0x800a138f - JavaScript runtime error: Invalid operand to 'in': Object expected

Code:

$.each(item.Sex, function (i,item1) {
if (i == 'N') {
$("#ddlSex option[value='"+item1.Sex+"']").attr("selected", true)
}
});
Member 12137386 6-Jan-16 10:01am View    
ya .. If "N" then dropdown should change to Male