ClarusDignus

jQuery scrollTop after form submit.

Mar 24th, 2015
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <?php if($_GET["someform"]==="submitted"){ ?>
  2.  
  3. <script>
  4. $(document).ready(function () {
  5. $('html, body').animate({
  6. scrollTop: $('#someid').offset().top
  7. }, 'slow');
  8. });
  9. </script>
  10.  
  11. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment