Skip to content

Instantly share code, notes, and snippets.

@rob-bar
Created November 20, 2013 10:34
jquery ajax call #jquery #ajax #coffeescript
$.ajax
url: $form.attr("action")
type: $form.attr("method")
data: $form.serializeArray()
.fail (jqXHR, textStatus, errorThrown) ->
.done (data, textStatus, jqXHR) ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment