[jQuery] ids of elements in a string

[jQuery] ids of elements in a string


hi, i think im blind :/
is there any jquery function or a short way to get a string with all
ids of elements?
for example
$(".list li").allids()
output something like that:
element1,element2,element3