The web programming paradigm is very confusing for a beginner and the way rails makes things seem magical is even more confusing to some people, i often find easier to teach rails and web developing to someone completely new to programming.
The form helper could be very obscure is you dont really know what helpers are. Also some basic javascript tutorials still have embedded js and to some the benefits of been unobtrusive are not obvious.
Pauls seem to be confused not by javascript but by the form helper and the way it renders html at the end so he does not appears to know that the helper outputs an id form him to capture via js.
Thank you so much for your kindly help and patient. I found the answer
by the link you point above.
As you said, the question it's not about the JS itself but rather than
how to render JS in Rails ERB file. After read though the text_area
API, I got the answer.
Next time I will start from reading API instead of posting such a
native question. Thank you again
Hi Pedro,
Thank you for your suggestion and I found it help me a lot!