Hi everyone,
I’m currently playing with ruby on rails, and I was trying to build a
form with limited AJAX functionalities…
So here is my problem : I want to create a form in order to allow
visitors to choose a car make and a car model. Once the user has choosen
his make in a select tag, the model select tag is supposed to be updated
with the models that belong to the choosen make (using an AJAX
observer).
The problem is that the model menu is updated (i use a partial to fill
the select tag with s), but the html tags are missing, and the
models aren’t selectable, nor are they separated since they’re not
included between and .
I tried to replace the drop-down menu with a simple unordered list
(
- ), updated and filled with
- tags… and it works. Is there
something special about form tags?Sorry if this isn’t clear, i haven’t practised my English for a while…
Thanks for your attention,
foxxbat