how to find the id of an <li> from another file on the server ?

how to find the id of an <li> from another file on the server ?

hey people...

i've got a file that contains multiple <li> with different id's:

<li id="1"></li>
<li id="2"></li>
<li id="3"></li>
...

how can i gram the those id's and put them into a var?

var get_id = $source.find('li').attr('id');  ??