How to get value from link_to_remote's :with paramenter?

I think the correct is :
link_to_remote "Apply", :update => "result", :url => {
:action => "discount_code"}, :with => "discount=$
(discount_code).value"