Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created January 7, 2013 11:38
Show Gist options
  • Save niraj-shah/4474401 to your computer and use it in GitHub Desktop.
Save niraj-shah/4474401 to your computer and use it in GitHub Desktop.
// 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