开发者

How to pass a link in select?

开发者 https://www.devze.com 2023-02-10 18:19 出处:网络
Case is I have to make a drop down in which i want link. for example <%= link_to \'Edit\', edit_user_path(user) %>,开发者_StackOverflow <%= link_to \'Show\', edit_user_path(user) %>,<

Case is I have to make a drop down in which i want link. for example

<%= link_to 'Edit', edit_user_path(user) %>,开发者_StackOverflow <%= link_to 'Show', edit_user_path(user) %>, <td><%= link_to 'Edit Contact', :action => :edit, :controller => :primary_contacts, :id => xyz %></td>.

Any help??


I think what you relly mean to ask is how to create a drop-down navigation menu -- right? There are many ways to do that, and most of them do not involve a select element. Usually, you would use CSS or JavaScript to show an absolute-positioned element containing your list of links when the user hovers over or clicks on the main element.

0

精彩评论

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