samwx
11/19/2014 - 4:32 PM

Load elements via Ajax

Load elements via Ajax

	$(document).on("click", '.label-success', function(event) {
		elemento = $(this);
		$.ajax({
			type: "POST",
			url: "http://domain.com",
			data: "my_data=" + elemento.parent().parent().attr('id'),
			success: function(result){
				elemento.parent().parent().hide().html(result).fadeIn('fast');
			}
		});
	});