Forms can not be nested Browsers handle form focus, index fields(tab
behavior) return behavior and those are reasonable concerns not to do
If you want to be able to achieve what you mentioned there, using
rails prototype helpers obeserve_field is a suggestion you can apply
that to any other JS library you might be using.