Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- voting : function () {
- var regions = $("#regions li.region");
- var form = $("#submit-city-form")
- form.submit(function (e) {
- e.preventDefault();
- $.ajax({
- data: form.serialize()
- ,dataType: "json"
- ,type: "POST"
- ,url: form.attr("action")
- ,complete: function (req) {
- console.log(req);
- }
- });
- });
- },
Add Comment
Please, Sign In to add comment