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
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:
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
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
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
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
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
7 matches
Mail list logo