How to add onchanget event to select field

I would like to add javascript ‘onChange’ event handling for a select
field, such as

<%= :s_modify, ([ “Frequency”, “Genotype”,
“Germline”, “Group”, “Haplotype”, , “Metagenomic”, “Pathovar”,
“Plasmid-name”, “Plastid-name”, “Pop-variant” , “Rearranged”,
“Segment”, “Subclone”, “Subgroup”, “Substrain”, “Subtype”, “Synonym”,
“Transgenic”, “Type”, “Variety” ]) %>
<%= form.text_field :vaule_sm%>

by if user select Metagenomic or 'Germline or ‘Rearranged’ or

the vaule_sm is “TRUE”

Anyone know how to make this work?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs