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
Post a Comment