Oh, that's brilliant.
On Friday, August 28, 2020 at 2:17:00 PM UTC-5 [email protected] wrote:
> no { $('[id$="91"]') ?: $('[id$="94"]') }
>
> On Fri, Aug 28, 2020 at 7:23 PM Ben Frey <[email protected]> wrote:
>
>>
>> Is it possible to have a selector that can choose a given element that
>> may have a different ID? For example, the application I'm working on has
>> Yes/No radio buttons. Usually, Yes has an id ending in 90 and No's id ends
>> in 91, but sometimes it's 93 and 94 instead. Rather than doing something
>> like this, is there a way to choose whichever one is there for the No
>> button?
>>
>> no(required: false) { $('[id$="91"]') }
>> weirdNo(required: false) { $('[id$="94"]') }
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Geb User Mailing List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/geb-user/9656e778-00a5-4c0f-92e2-1d45aeba0aeen%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/geb-user/9656e778-00a5-4c0f-92e2-1d45aeba0aeen%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups "Geb
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/geb-user/c1c362d4-d7f9-42ea-9528-c28b02b1fb34n%40googlegroups.com.