attr("value") returns -1

attr("value") returns -1


I have a list such as <li id="something" value="something"></li>
I'm trying to iterate over it using this piece of code
$("#condselect_" + subsectionID + " li").each(function(index) {
console.debug($(this).attr("value"));
console.debug($(this).attr("id"));
// condList[index] = $(this).val(); });
I believe the iteratorion is ok, since it outputs the id attribute
correctly, however, it always returns -1 for the value attribute!
I have also tried $(this).val(), but it always outputs -1!
Does anyone know whats happening? what I am doing wrong?
Thanks
Marta