Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
 In my requiremenet  I get some values from JsonResult and get that in script.Now I have to show those values in a popup window each with a radio button,when user selects a particular radio button the particular text will be selected to a textbox then I need to send it to database.
 
I took a div and i am enabling this and not able to show the values,Please help me on this
here is my code 
 
$("#divPartNums").show();
for (var len = 0; len < result.PartNo.length; len++) {
var markup = "<tr><td><input type='radio'></td><td>" + result.PartNo[len] + "</td></tr>";
$("tblPartNums tbody").append(markup);
}
$("divPartNums").append(tblPartNums);
$("#divPartNums").dialog({
height: 200,
width: 350,
modal: true,
});
 
}
$.ajax(options);


What I have tried:

I tried the above code but not able to show the expected things in the popup
Posted
Updated 24-Aug-17 4:13am

1 solution

Hi,

This code should be
result.length


Can you post the json result.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900