i have attached a modified demo from jQueryUI 1.8rc3 demos
in the combobox.html file, you will have two combobox. The first one is inside a form tag and the other one is not. If you have the same problem as me, you will see that as soon as you open the first combobox, it will refresh the page but no the other one.
I have also experienced this problem - and I think found a solution. If I place the select_tag before the form_for then the combobox and button work fine. If I move the select_tag inside the form then the button stops working. It now directs to update or create in the controller.
I notice in the js for the combobox it inserts "<button> </button>" into the page. If I just add that simple button code inside the form_for it has the same effect of the button directing to the controller update/create actions.
I tried your solution (<button type=button>), and it worked like a charm, thanks.
By the way, it's worth pointing out that we have the code running in our dev environment without this change and it runs without issue. However, the issue became apparent after deploying to a customer's server suggesting that the way that the server provides the content may have something to do with the problem, at least it does from our perspective.
Thanks for your comment, I for one really appreciate it.
Leave a comment on scottsilvi's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic