Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active December 10, 2015 18:30
Show Gist options
  • Save niraj-shah/4474392 to your computer and use it in GitHub Desktop.
Save niraj-shah/4474392 to your computer and use it in GitHub Desktop.
The error function
function error(msg) {
// select the span with id status
var s = $('#status');
// set the error message
s.html(typeof msg == 'string' ? msg : "failed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment