how to call javascript function in text_field_tag

Hi Charanya,

Or try using unobtrusive JavaScript by giving the field a unique id and then hooking up the action to that id. With jQuery it is very simple.

To get the field just use:


and then you can chain any function to the element.


Charanya Nagarajan wrote: