Q1. Can we access the static webservice method by using Json ?
ANS. No
Q2. How to bind dropdownlist using each function in jquery ?
ANS.
<select id="ddlProducts"> </select> //html control
// jquery
$("#ddlProducts").append($('<option>').text('select').attr('value', 0));
$.each(data.d, function (i, item) {
$('#ddlProducts').append($('<option>').text(item.ProductName).attr('value', item.ProductID));
No comments:
Post a Comment