Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(result = nil) {
- // Content - Could also be "loaded" from somewhere.
- data = "<div class='alert alert-info">No Result</div>';
- // Container with ID == content
- $('#content').prepend(data);
- // Close after 3000ms
- window.setTimeout(function() { $('.alert').alert('close') }, 3000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement