Simple Formulary with Jquery
My question it´s about how i can de most simple way my formulary by Post
I create this
<script>
$('#forma').submit(function()
{
$.ajax(
{
type: 'POST',
url: $('#forma').attr('action'),
data: $('#forma').serialize(),
success: function(data)
{
$('#result').html(data);
}
};
</script>
<div id="result"></div>
<form name="forma" method="post" action="result.php">
<input type="submit" name="Submit" value="Enviar">
<input type="text" name="name">
</form>
I want know also how i can redirect if the result when user send formulary it´s ok to other url
The case it´s no works and i don´t know how do this , if it´s possible more easy perfect also , Thank´s for all i wait your help , Thank´s 