I want change the default close icon button in jquery Dialog.
I tried to add this css class in jquery-ui-1.8.23.custom.css:
.ui-icon-myCloseButton { background-image: url(/path/image.png); }
and in the Dialog Definitions:
$('#documentsDialog').dialog({
create: function(event,ui) {
var widget = $(this).dialog("widget");
$(".ui-dialog-titlebar-close span",widget).removeClass("ui-icon-closethick").addClass(".ui-icon-myCloseButton");
});
but no luck, any idea?
.
fromaddClass(".ui-icon-myCloseButton");
:addClass("ui-icon-myCloseButton");
It will still add the class, but I believe it will add it like:class=".ui-icon-myCloseButton"
instead ofclass="ui-icon-myCloseButton"
– Brewton