I am using below code to open a jQuery popup box containing a Text Box.
User has to fill the remarks and click Save button on the popup.
The popup has two buttons: Save and Cancel.
I tried calling an Action Method when Save is clicked, but each time it is calling the GET method. It is not calling the POST method.
On click of Save, the remarks entered should be posted to an Action Method.
What changes are required in this code?
<script type="text/javascript">
$(function () {
$('#btnclick').click(function () {
$("#popupdiv").dialog({
title: "Enter Remarks: ",
width: 400,
height: 200,
modal: true,
buttons: {
Save: function () {
//POST code here
},
Close: function () {
$(this).dialog('close');
}
}
});
});
})
</script>