jquery - Rails form - Only submit the visible element (2x element with same id) -


i got this:

a form 2 select fields, both of them have same id. want visible 1 gets submitted. there solution for? adding attribute element rails know?

duplicate id on same page bad practice. suggest change them unique ids instead of hacking solution.


Comments

Popular posts from this blog

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -