Error assigning id to element in append

Error assigning id to element in append


I have the following code

    $('md-menu-content').append (
    ('#md-menu-item/>', {'id': 'child')).
        eval('element _' + indentif).input
    );

In which md-menu-item is added in md-menu-content and receives a 'child' id, id that I use in find to add another item, now in md-menu-item, however it does not add id The query does not advance, unless I swap md-menu-item for another tag, example ...

    $('md-menu-content').append (
    $('<a/>', {'id': 'child')).find('# child').append ('
       eval('element _' + indentif).input
    );

I know HTML is case insensitive, would this have anything to do with it?