Loading spinner working on Chrome but not on safari

I need to have a loading spinner when i click on submit button and it’s working fine on chrome browser but having problems on safari browser .
Should I need to change anything here.(Do comment if anything is unclear)

<br> <input type="submit" class="styled-button-1"
                value="Upload Your Files" id="submit"
                onclick="$('#loading').show();" />
        <div id="loading" style="display: none;">
            <img src="images/loading.gif" alt="" /> <b>Uploading in

Source: jsp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.