# Returning to anchor point after form submit

**URL:** <https://www.ruby-forum.com/t/returning-to-anchor-point-after-form-submit/143026>\
**Category:** Rails\
**Created:** [July 14, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/returning-to-anchor-point-after-form-submit/143026 "2008-07-14T16:50:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Post date:** [July 14, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/returning-to-anchor-point-after-form-submit/143026/1 "2008-07-14T16:50:02Z")

</div>

Does anyone know how to do the following? I’m not even sure if it is  
possible without Ajax…

I have a form for a contact’s details. The form also contains fields  
for 1 or more associated telephones. The form has a “real” submit  
button, as well as other submit buttons that are used to add/remove  
telephone fields.

When the user clicks the “add another telephone” button in the form,  
the edit view is rendered, and from the user’s point of view, the  
screen scrolls all the way back to the top. Is there a way, after  
submitting the form, to render the form but jump to an anchor within  
the page (so the screen remains centered on the telephone)? Without  
Ajax?

Thanks in advance,  
Dave.
