- 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

1st Aug 2017, 5:37 PM
Farhodjon
Farhodjon - avatar
2 Respuestas
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
2nd Aug 2017, 3:56 AM
Farhodjon
Farhodjon - avatar
- 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
1st Aug 2017, 6:59 PM
ashutosh mishra
ashutosh mishra - avatar