Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Snippet to display loading image on button click
<script src=""></script>
<h1>Demo for displaying a loading image on button click</h1>
<div id="loading" style="display:none;">
<img src="" height="400" width="400">
<strong>Loading please wait...</strong>
<button name="button1" onclick="$('#loading').show();">
Click me to display loading image!
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.