Html tag

I have Html tag :

smth1 smth2

and my question is: how to obtain selected value by using ruby or rails?

I’m assuming you mean in a Controller:

value = @params[‘tag’]

value will contain the value string, not the display string.

Jason

No, I assume, that I have rhtml file with this tag and want to get
selected value to use it in same rhtml file without using Controller
(DOM model)

Jason R. wrote:

I’m assuming you mean in a Controller:

value = @params[‘tag’]

value will contain the value string, not the display string.

Jason