Thanks Alexander!

that's a good ideia.. but not so simple..  did you create a _javascript_ to remove and after that add all new elements of the select?
there should be an easier way, does anybody know a fast way to do it?

Jony dos Santos Kostetzer
| Linux user #392481


Alexander Deruwe wrote:
On 11 Jul 2007, at 15:19, Jony dos Santos Kostetzer wrote:
  
hi!
    

Hey Jony,

  
I have two object_select_tags (i. e. states and cities - one-to-many
relationship). When I choose an state, i'd like that the second
select_tag shows, for example, only the cities of that state. Which is
the better way to do it?
    

I've solved this problem using a Prototype observer on the first  
select tag to update (using Ajax) the contents of the second select  
tag.  I don't update the second select tag as a whole because then  
tabbing through a form becomes cumbersome.
Maybe this is the recommended way, maybe not. ;)  If people have  
solved this in a better way then I too am interested to hear.

Cheers,


Alexander



  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to