Skip to content

Instantly share code, notes, and snippets.

View jbatista19's full-sized avatar

Jorge Batista jbatista19

  • Panama
View GitHub Profile
@jbatista19
jbatista19 / ajax-form.js
Last active December 13, 2015 20:48 — forked from havvg/ajax-form.js
Bootstrap Modal ajaxified live() replaced with on()
jQuery(function($) {
$('body').on('submit','form[data-async]', function(event) {
alert('submit Event');
var $form = $(this);
var $target = $($form.attr('data-target'));
$.ajax({
type: $form.attr('method'),
url: $form.attr('action'),
data: $form.serialize(),