- 1
How can I switch the gif animation while pjax reloading
I've div with class loader and button with id click. When I click in button Pjax reloads. I have a question how can I animate while Pjax reloading
2 Antworten
0
Thank you! But how I show and hide it. I use like this: $.pjax(beforeSend: function(){$('.loader').show()}, complete: function(){$('.loader').hide()}); But it doesn't help me
- 1
using jquery add class to hide your div which has button to submit and after that remove class hidden from that div you have loader gif(remember this div already have a class hidden) u can find this class in bootstrap.
Hope this will help u