Displaying 1 result from an estimated 1 matches for "loginfieldonblur".
2009 Feb 24
1
How do I clear values from text_field_tag after browser refresh????
...a very simple
thing, however I''m having hard time finding the answer.
After I input some values, how do i reset the value to nil or empty??
my code is below
<%= text_field_tag ''login'', @login, :class => "input-text",
:onblur => "loginFieldOnBlur(''login'')",
:onfocus => "loginFieldOnFocus(''login'')"
%>
Any help or tip will be greatly appreciated.
I tried removing @login from text tag, setting @login to null or
empty..setting params[:login] to an empty string in my se...