i can't seem to add ids to the buttons in a jquery created dialog. i can select the buttons after the dialog is declared via selectors as follows:
var buttons = $("#dialog").siblings(".ui-dialog-buttonpane").find("button");
but when i try to do:
buttons[0].attr('id', 'someId');
i get:
TypeError: Object #<an HTMLButtonElement> has no method 'attr'
any suggestions? i don't see anything in the jquery docs that implies that attr shouldn't work on buttons