Link_to Tag, Onclick Event

Hi,
I want to do like this :-

using Link_to tag.
Where - validate() is an java script function in that RHTML file.

Is this is possible using link_to tag? If yes tell me hoe to do that?

Thanks & Regards,
Tushar

On 19 Aug 2008, at 11:52, Tushar G. wrote:

Hi,
I want to do like this :-

using Link_to tag.
Where - validate() is an java script function in that RHTML file.

Is this is possible using link_to tag? If yes tell me hoe to do that?

link_to_function will do that.

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs