im using jquery to expand a div when a button is clicked, here is the button code:
<input type="button" value="Reply" onclick="jQuery('#replycont').slideToggle()"
/>
and then obviously the actual div:
<div id="replycont" style="display:none; border:1px #000000 solid; padding:10px;">
<form method="post" action="index.php?id=viewticket&seq=<?php echo $_GET["seq"]; ?>#updates_bottom" enctype="multipart/form-data" class="form-stacked">
<div class="control-group">
<label class="control-label bold" for="message">Message</label>
<div class="controls">
<textarea name="ticket_update" id="ticket_update" rows="12" style="width:100%;"></textarea>
</div>
</div>
<p><input type="hidden" name="ticketnumber" id="ticketnumber" value="<?php echo $_GET["seq"]; ?>" />
<input type="submit" name="addupdate" id="addupdate" value="Submit" /></p>
</form>
</div>
the button is at the top of the page and then the div is down the bottom, what would be the best way to make the page scroll to the bottom so the div is visible as well as the button expanding the div?