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

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

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -