[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-08 Thread rgrwkmn
Thanks Wizzud, that's some syntax I've been needing to know. Why can't you use the $(this).id? On Oct 7, 3:16 am, Wizzud [EMAIL PROTECTED] wrote: NB . to add/change an id: $('select[name=foo]').each(function(i){ this.id = 'bar'+i; }); On Oct 6, 2:47 am, rgrwkmn

[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-08 Thread syg6
Thanks a million both of you! I saw your responses over the weekend but was unable to try them out until today, Monday. It worked like a charm! jQuery rocks! Thanks again! Bob On 7 Oct, 10:16, Wizzud [EMAIL PROTECTED] wrote: NB . to add/change an id:

[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-07 Thread Wizzud
NB . to add/change an id: $('select[name=foo]').each(function(i){ this.id = 'bar'+i; }); On Oct 6, 2:47 am, rgrwkmn [EMAIL PROTECTED] wrote: In addition to Wizzud's solution: Since it seems that you want to be able to access each select with the name foo individually

[jQuery] Re: multiple selects, hiddens and text inputs with same name

2007-10-05 Thread Wizzud
With... select name='foo'option value='bar1'bar1/option/select select name='foo'option value='bar2'bar2/option/select try... var selects = $('select[name=foo]'); See the Attribute Filters, under Selectors in the API Reference. (If you have non-unique ids for elements on your page, do not

[jQuery] Re: Multiple Selects

2007-06-04 Thread Rob Desbois
Hi, Thanks for your contribution - callbacks was something I knew needed adding, and I agree with your modification to passing in selectors rather than just IDs. At some point I'll release a new version with this and some other planned enhancements. --rob On 6/4/07, [EMAIL PROTECTED] [EMAIL

[jQuery] Re: Multiple Selects

2007-06-04 Thread Enrique Meléndez Estrada
A suggestion would be to transform this plugin into one more unobstrusive or accesible. I mean, in HTML exists already a way for Multi selection (in fact, two ways) in a form: * Using HTML INPUT type checkboxes * Using HTML multipleSelect with one or more rows visible... Ok, then this

[jQuery] Re: Multiple Selects

2007-06-04 Thread Rob Desbois
Those are good suggestions - unfortunately (for you!) I developed this for my own purposes; I have a known target user group, so I know that they will have JS enabled, thus developing for graceful degradation was not one of my driving forces. In its current state I've released it in the form I