1. How can I update option in <select>-box with Ajax ?
2. How can I by clickin text-link update content of some <div> ?
1. How can I update option in <select>-box with Ajax ?
2. How can I by clickin text-link update content of some <div> ?
1. How can I update option in <select>-box with Ajax ?
You mean change the options in the select box ?
2. How can I by clickin text-link update content of some <div> ?
link_to_remote 'click me', :update => 'some_div', :url => {:controller
=> 'foo', :action =>'var'}
Fred
Frederick Cheung wrote:
1. How can I update option in <select>-box with Ajax ?
You mean change the options in the select box ?
Yes, add / remove options in select box
2. How can I by clickin text-link update content of some <div> ?
link_to_remote 'click me', :update => 'some_div', :url => {:controller => 'foo', :action =>'var'}
Thanks.
Frederick Cheung wrote: >> 1. How can I update option in <select>-box with Ajax ?
> You mean change the options in the select box ?
Yes, add / remove options in select box
Well in theory you could just do an ajax update that updates the select box (ie where the action just renders the option tags).
Fred