Hi,
I have a text_field_value that I want to set the value dynamically,
I use this script:
$(function() {
$("#keypress").keypress(function() {
alert("from keypress");
$(this).value = "a" ;
return false;
})
})
the alert is shown but the value of the text_field is not changed
How can I have the right behaviour (for example every time I press a
key, I have the same key twice in the text_field)
regards,
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.