Displaying 1 result from an estimated 1 matches for "seledt".
Did you mean:
select
2008 Sep 02
1
seledted option for select_tag
Hi iam using select_tag i want selected_option. i have made select
_tag like this
<%=select_tag(''name'', options_for_select({ :Relevance
=>''Relevant'',:Date=>''Recent''}),:selected=>params[:name].to_s) %>
The generated html look like this
<select selected="Relevant" name="name"