Avatar of Tom
Tom
 asked on

Get value of id using jQuery

I'm attempting to create a GreaseMonkey script that will return the value of id in the following html:
<div class="foo">
                <div class="bar" id="random1234"></div>
</div>

Open in new window

In the above example random1234 would be returned.
JavaScriptjQueryHTML

Avatar of undefined
Last Comment
Tom

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mukesh Yadav

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tom

ASKER
Excellent!
Your help has saved me hundreds of hours of internet surfing.
fblack61