Created
September 13, 2018 00:00
-
-
Save sonerb/69925f55255ed67363f4fbaa8a7b4227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$(".btn-pro").click(function () { | |
var btn_submit = $(this); | |
$.ajax({ | |
type: 'POST', | |
url: 'jproduct', | |
data: btn_submit.parentsUntil("form").serialize(), | |
success: function (data) { | |
if ($.trim(data) == "yes") { | |
$.notify("Ürün sepete eklendi", "success"); | |
} else { | |
$.notify(data, "error"); | |
} | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment