Let’s say I have a fairly generic jQuery Prompt that asks me to rename an element and then tells me what I entered:
$(function () {
$("#rename").click(function () {
jPrompt('Please Enter a New Name:', 'Enter new name...', 'Rename Prompt', function (r) {
if (r) {
alert('You entered ' + r);
}
});
});
});
But the element that I wish to rename is stored on a database on the server, which means that I need to run a server-side script to rename this element. I assume that this means that I need to use a submit, just like on a form. I’ve found some information about a .submit() jQuery function here but I do not entirely understand how it works. If anyone could let me know how I would make a submit and then run a server-side script that would be really appreciated.
Url.Actionto get a correct URI<form>somewhere and fill it with the information to post