I'm trying to use jQuery's $.post() method with variables from values taken from textboxes on the page. My code looks like this:
$.post("install-ajax.php", { host: $("#host").val(), user: $("#user").val(), pass: $("#pass").val(), name: $("#name").val() }, function(data) { $("#post").append(data); }); So far, the request hasn't worked at all. Is this possible to do? If so, what do I have to do to make it work?
Thanks very much in advance! :)