Skip to content

Instantly share code, notes, and snippets.

@gilvam
Created April 29, 2013 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilvam/5483998 to your computer and use it in GitHub Desktop.
Save gilvam/5483998 to your computer and use it in GitHub Desktop.
regarregar pedaços html
<?php
if ($_POST['btnSalvar'])
{
try
{
echo '<h1>btnSalvar Uhulllll!</h1>';
}
catch (Exception $exception)
{
echo $exception->getMessage();
}
}
?>
<form id="frmEditarConsulta">
<input placeholder="texto" type="text" name="txtData" title="digite algo" class="required" />
<input type="submit" value="Salvar" name="btnSalvar" id="btnSalvar">
</form>
<script type="text/javascript">
$(document).ready(function(){
$("#frmEditarConsulta").validate({
submitHandler: function() {
$.post(
'ajaxSolicitacaoProcessar.php',
$('#frmEditarConsulta').serialize(),
function(e){ $.facebox(e) }
);
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment