Reading label Id

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-03-29T08:01:54Z Indexed on 2010/03/29 8:03 UTC
Read the original article Hit count: 162

Filed under:

Im having a table in which im creating a label dynamically.

'<td>' + '<label for="Name" id = ' + value + '>' + text + '</label></td>'

I want to retrieve the id of the label and I`m doing the following which is not working: How can I get the Id of the label?

function ReadNames() {
            $('#Table tr').each(function() {
                NameID.push($(this).find('label').val());
            });   } 

© Stack Overflow or respective owner

Related posts about jQuery