I wish to add a class definition to an element creatured with button : { } how do I do so without doing something like $('.ui-dialog-buttonpane button:eq(0)')
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
//add a class definition to the delete all items button here. tried
//class:'save' didn't work
"Delete all items": function() {
$( this ).dialog( "close" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
}
});
});