Hi,
I have ajax:
<script src="js/jquery-1.10.1.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script>$(document).ready(function () {$('#add-button-one').click(function () {
// alert('s');$.ajax({
type: "POST",
url: "default2.aspx/SaveLottery",
data: JSON.stringify({ data: records }),
dataType: "JSON",
contentType: "application/json",
success: function (data) {
alert("Saved Sucessfully");
window.location.reload();
},
error: function (xhr, textStatus, errorThrown) {
alert(errorThrown);
}
});
});
});
</script>not working, but if I used only alert('test') working, what is problem with this?
I checked with firebug but POST not working.
Please help