-
-
Save Punkoivan/3360fcdc884513cd203c39b6b8a37c55 to your computer and use it in GitHub Desktop.
This file contains hidden or 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(){ | |
$(".button").click(function(){ | |
var number = $(".field_with_number").text(); | |
var address = $(".field_with_address").text(); | |
$.ajax({ | |
type: "POST", | |
url: "/settings/setmin", | |
data: {min: number, addr: address}, | |
dataType: "html", | |
contentType: "application/json;charset=utf-8", | |
success: function(){ | |
alert("success!"); | |
} | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample code for fail: