# Multible insertion while presing the ender key continuously

**URL:** <https://www.ruby-forum.com/t/multible-insertion-while-presing-the-ender-key-continuously/118042>\
**Category:** Rails\
**Created:** [October 23, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/multible-insertion-while-presing-the-ender-key-continuously/118042 "2007-10-23T15:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@selva](https://www.ruby-forum.com/u/selva)\
**Post date:** [October 23, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/multible-insertion-while-presing-the-ender-key-continuously/118042/1 "2007-10-23T15:17:36Z")

</div>

Hi

I am new to ajax.I am creating one form on ajax call.Also i am using  
for remote\_form\_tag to submit the form. I am trying to submit the form  
using Enterkey.  
Here the problem is If i hold the enter key some time multible rows are  
are creating. Can i control using javascript???

Please help me…

---

<div class="post-metadata">

**Author:** ![selva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@selva](https://www.ruby-forum.com/u/selva)\
**Post date:** [October 23, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/multible-insertion-while-presing-the-ender-key-continuously/118042/2 "2007-10-23T19:18:31Z")

</div>

Model validations should prevent this.

On Oct 23, 7:17 am, Selvaraj S. \<rails-mailing-l…@andreas-
