To ‘get’ and element ID or CLASS you can use the same functions as CSS i.e.
You can use single or double quotes too, i.e.
You can also drill down by leaving a gap between CSS names. i.e. If you had an ‘a’ tag in a div with an id of #myDiv, you could use: