Say I’ve got a page that lists the students names and grades. Grades are
clickable using a form_remote_tag that then renders a new partial on the
right hand side of the page that then lists the individual test scores
the particularly student. So far so good.
And lets say in the newly rendered right-hand section, I have another
form_remote_tag that will allow me to input a new grade for that
I’d like to set an onfocus event for that text input field that
element.shows another div (that displays a help message, lets say).
The problem I am having is that I can’t get the onfocus event to work
because – since the field is contained in a newly rendered div that
present when the page first loaded – its id doesn’t seem to be found in
dom and so the onfocus won’t trigger.
partial is rendered?