Thanks for that Adam, helped me a lot.
On Saturday, January 10, 2009 1:10:15 AM UTC+10, Adam Massive wrote:
Ok ok, stop.. just stop... you're all making it too complicated.
[shakes head]
Let's go over things...
You want a button that submits normally but want to try and stop the
enter
I don't know my english but my javascript is very newbie, too much
newbie
¿ Is not this, the same or similar, that disable the sumbmit button at
the begining of onchange event and activate it at the end?...something
like:
%= f.text_field :amount, onchange=disable_submit(); +
Easy and clean, thanks you
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
On Thu, Nov 15, 2012 at 10:23 AM, Albert Català li...@ruby-forum.com wrote:
Easy and clean, thanks you
If you want/need to prevent enter from submitting a form, you are
doing it wrong and you could be be alienating some disabled people who
do not use a mouse and rely on their keyboard. I know
The simplest way is pass this code to your form :D
input type=text style=display:none
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
Ok ok, stop.. just stop... you're all making it too complicated.
[shakes head]
Let's go over things...
You want a button that submits normally but want to try and stop the
enter key submitting it. To do this, you're going to need to understand
the relationship between the ENTER key, the
6 matches
Mail list logo