scroll to top after submitting the quiz

Please add the given script from wp-admin -> wplms ->footer -> google analytics code :

<script>
jQuery(document).ready(function($){
$('.unit_content').on('unit_traverse',function(){
$( 'body' ).delegate( '.unit_button.submit_inquiz', 'click', function(event){
 $('body,html').animate({
    scrollTop: 0
  }, 1200);
});
});
});
</script>

 

Was this article helpful?

Related Articles

Leave A Comment?