<script>
var pageUrl = "http://localhost:12152/Product.aspx";
window.onload = function () {
var ncount = 0;
ncount++;
$("#callproceed").click(function () {
alert("working");
$.ajax({
type: "POST",
url: pageUrl + '/AddProceed',
data: '{subPoints:' + parseInt($("#h4+ncount").html()) + '}',
contentType: "application/json; charset=utf-8",
dataType: "json",
dataFilter: function (data) { return data; },
success: function (response) {
alert(response.d);
} ,
failure: function (response) {
alert(response.d);
}
});
});
};
</script>
I'm using AJAX to retrieve dynamic data within an HTML tag, but I'm only receiving one value.