Grabbing form data using link_to

Is there a way I can grab the form data using javascript (onclick) combined with link_to For example: link_to "link_name", {:action => "myAction"}, :onclick => ...

Appreciate your help. Aditya

Is there a way I can grab the form data using javascript (onclick) combined with link_to   

just use the :submit parameter when calling link_to

regards,

javier ramirez