开发者

Rails, select_tag, :onchange => not ajax request

开发者 https://www.devze.com 2022-12-15 07:27 出处:网络
I have a select tag with :onchange which updates the page with relevant data, however, I don\'t want to do it with Ajax because it is messing up my navigation structure.

I have a select tag with :onchange which updates the page with relevant data, however, I don't want to do it with Ajax because it is messing up my navigation structure.

I want to use select_tag and when开发者_C百科 they its is changed it sends a regular HTML request which refreshes the entire page.

How can I do this.


Here is a good solution:

RJS: Ajaxified select_tag

0

精彩评论

暂无评论...
验证码 换一张
取 消