Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <src="script.js"></script>
- <form id="Form" action="" method="GET" class="form-horizontal">
- ... campos do formulário
- </form>
- jQuery(document).ready(function(){
- jQuery('#Form').submit(function(){
- carregando(1);
- // seria liza os dados do formulário
- var dados = jQuery( this ).serialize();
- //var dados = new FormData(this);
- jQuery.ajax({
- type: "GET",
- url: "arquivo.php",
- data: dados,
- success: function(data) {
- carregando(0);
- //msg = JSON.parse(data);
- //alert (msg);
- $('#ret').html(data);
- }
- });
- return false;
- });
Add Comment
Please, Sign In to add comment