Re: Obtain all elements of multiple select

2007-12-10 Thread dandreta
Thanks for your response. I have proved it but it does not work. Anyone has made something similar what I want to do? On 10 dic, 10:21, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > On Dec 9, 4:45 pm, dandreta <[EMAIL PROTECTED]> wrote: > > > Thanks for your response. > > But I dont understa

Re: Obtain all elements of multiple select

2007-12-10 Thread dr. Hannibal Lecter
On Dec 9, 4:45 pm, dandreta <[EMAIL PROTECTED]> wrote: > Thanks for your response. > But I dont understand how I can do this. > Can you explain me, please? > Regards I'm assuming you're using javascript for item switching, so setting select.options[index].selected to true would do the trick. Ther

Re: Obtain all elements of multiple select

2007-12-10 Thread dandreta
On 6 dic, 19:19, dandreta <[EMAIL PROTECTED]> wrote: > I have an HABTM relation between ModelA and ModelB. > In the add view of A, I have created two lists, one with all B > elements of the database and other one empty . I pass elements of the > first list to the second one with javascript and

Re: Obtain all elements of multiple select

2007-12-09 Thread dandreta
Thanks for your response. But I dont understand how I can do this. Can you explain me, please? Regards On 7 dic, 12:16, Serge Rodovnichenko <[EMAIL PROTECTED]> wrote: > Try to set/reset a 'selected' attribute of OPTION when moving options > between two lists. > > On Dec 6, 9:19 pm, dandreta <[EMA

Re: Obtain all elements of multiple select

2007-12-07 Thread Serge Rodovnichenko
Try to set/reset a 'selected' attribute of OPTION when moving options between two lists. On Dec 6, 9:19 pm, dandreta <[EMAIL PROTECTED]> wrote: > I have an HABTM relation between ModelA and ModelB. > In the add view of A, I have created two lists, one with all B > elements of the database and ot

Obtain all elements of multiple select

2007-12-06 Thread dandreta
I have an HABTM relation between ModelA and ModelB. In the add view of A, I have created two lists, one with all B elements of the database and other one empty . I pass elements of the first list to the second one with javascript and the second list will contain the B elements that will be relate