Hi everybody! I''m trying to highlight invalid entries in an ajax-based form. What i am trying to do in the called rjs template is this: for @invalid_entry in @invalid_entries page.insert_html :after ,@invalid_entry,''</span>'' page.insert_html :before ,@invalid_entry,''<span class=fieldWithErrors>'' end @invalid_entry is the id of an invalid entry (input field). I am trying to surround it with a span which is formatted by css. What is generated is this: <span class="fieldWithErrors"/> <input type="text" value="21" size="30" name="worktime_entry[231][hours]" id="worktime_entry_231_hours" class="worktime_input"/> The span before the entry is closed (although i don''t close the span tag in the insert_html). The span closing tag is not displayed... Does anybody see the error in this? Help would be greatly appreciated! Thanks for reading -- 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 -~----------~----~----~----~------~----~------~--~---