0
I have a jquery script that selects a particular Select via the 'name' attribute and makes some changes to the label of another select:
var selectRecheioGroup = $('select[name=recheio1] .grupoRecheio');
The question is: how can I make this selection to also cover other 2 selects of names 'recheio2' and 'recheio3'?
In my case here it worked very well, Anderson, thank you! Now, in case the other 'Names' are not similar, what other alternative would I have?
– Murilo Ravani
Explain further "Similar Issues".
– Woss
For example, in the solution you gave, all 'Names' have the combination 'stuffing' in the composition of the name: recheio1, recheio2, recheio3. And if they were, for example, 'stuffing', 'decorating' and 'chocolates''?
– Murilo Ravani
There only on the same arm, selecting each one individually.
– Woss
I get it. I thought there was some solution putting a comma like
var selectRecheioGroup = $('select[name=recheio1], [name=recheio2], [name=recheio3] .grupoRecheio');
– Murilo Ravani