Hi,
I want to make a POST request to my Controller with jquery.
function Send() {
$.post("User/Delete/1");
}
<a href="#" onclick="Send()">Delete</a>
It doesn't work, however if i write this code:
<%= Html.ActionLink("Delete", "Delete", new { onclick = "$.post('User/Delete/1')" })%>
it works fine. Unfortunetly i cant use this phrase because i need to call that Send() method from a jQUERY UI dialog too.
Thank you