Hi all,
Anybody know what the jQuery selector is for the "selected" value of a
option_groups_from_collection_for_select
I'm trying to listen for a button click and then determine whether the
user has selected an item from a dropdown or not... (not the same
button)
Coffee:
$('.landing_edit_questions_btn').click ->
if $('#minisections').val()??? == "Select an Area"
alert('Select an area!')
erb:
<%= select_tag :minisections,
option_groups_from_collection_for_select(Subsection.order(:title),
:minisections, :title, :id, :title), :prompt => "Select an Area" %>
Any help appreciated!
Thanks DaveC
--
Posted via
http://www.ruby-forum.com/.