<p class="acp3">
<label>Status</label>
<select>
<% if <option>Active</option> %>
<%= account["status"] == "Active" %>
<% elsif <option>Disabled</option> %>
<%= account["status"] == "Disabled" %>
<% end %>
</select>
</p>
I am creating a selector with the html and I want to be able to have it access that variable when the specific selector is choosed. Is there a way to do this with Rails or is there a javascript way of doing it?