JavaScript Cursor Change (and change back again)

前端 未结 7 1997
日久生厌
日久生厌 2021-01-17 11:14

I have this page that does some funky database stuff that takes a couple seconds to process, and in the meantime I\'d like to set a \"wait\" cursor so the user

7条回答
  •  遇见更好的自我
    2021-01-17 11:53

    If you are happy using JQuery then a quick way to solve this would be to use:

    $('*').css('cursor','wait')
    

    I don't know how elegant this is but it has been working for me,

提交回复
热议问题