0

I have a Reply button at the middle of the page after a variable length text. When the button is clicked a reply form appears:

$(document).ready(function(){ 
  $("#reply").click(function(){
     $("#replyform").toggle(1000);    
  });
 });

The problem is that when the form appears, it often falls outside of visible area. My question is how to scroll down automatically to replyform, so that the form appears at the center of the browser, hence becomes clearly visible?

Milkyway
  • 705
  • 3
  • 12
  • 25

0 Answers0