Remote_function doubt

Hi all,
I have two hidden fields in a form purpose_id and qtntype_id.
I need to pass these two to the controller. I’m trying the following
code in a javascript function

<%= remote_function(:update => “list3”,
:url => { :controller => “question”, :action => “show”},
:with => “Form.Element.serialize(qtnlist.purpose_id)”,
:with => “Form.Element.serialize(qtnlist.diseaselist_id)”
)%>

Is this correct? Am I wrong in the syntax.

Thanks
Chris

I made a mistake earlier. here is the new post.

Hi all,
I have two hidden fields in a form purpose_id and qtntype_id.
I need to pass these two to the controller. I’m trying the following
code in a javascript function

<%= remote_function(:update => “list3”,
:url => { :controller => “question”, :action => “show”},
:with => “Form.Element.serialize(qtnlist.purpose_id)”,
:with => “Form.Element.serialize(qtnlist.qtntype_id)”
)%>

Is this correct? Am I wrong in the syntax.

Thanks
Chris

Sorry every one, sorry to trouble you. But I found out the way.
Just use
Form.serialize(qtnlist)
This will send all the values in the form.
The following blog helped me out. You may check it if you like.
色色色天堂,欧美成人国产精品一区二区,亚洲精品偷拍无码不卡av,无码视频在线免费播放,亚洲最大视频网站,五月婷婷网站,成人无码视频 … omment-166
Thanks
Chris