Question: Can you get the `id` attribute of a html tag using jQuery or without?

For example:

```
<ul id="todo" />

```

How can I get the `id`, without using `jQuery("#todo")`?

Is there a way for that? Will `attr()` work?

Answer: 
You can use `attr('id')` in jQuery or the `id` property (or `getAttribute('id')`) on the native DOM element.
Yes, you can use `.attr('id')` to get the id of an element