Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Functionalizing JavaScript 2
$('#someElement').on('click',
function() {
var objectId = getObjectId();
$.ajax({
url: "/some/path",
type: "POST",
data: {
objectId: objectId
},
success: handleSuccess
})
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.