Hello - I have a custom javascript confirm function that I wanted to add to a link_to method.

The function replaces specific text fields depending if the user chooses cancel or ok.

Can this be done?