can someone help me with textfield? how do i get this to work? <%= text_field :item, :barcode, :size => 21, :onclick=> "clickclear(this, ''insert barcode here'')" %> the above line as it stands does not like the variable ''this'' inside the clickclear (js) function... i''ve also tried playing around with html options but not sure of the direction to go here.. : T -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---