I am trying to use the Geb jQuery selector on the following element:
<li data-title="Something"><'li>
I have tried the following:
//1
$("li", "data-title": "Something")
//2
$("li", data-title: "Something")
But neither work. Is this possible?
You can just use the CSS selector for a custom attribute for this:
$("li[data-title='Something']")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With