I’ve added Close as an option, then I would like to trigger it to close the dialog if clicked. In addition I would like to set “display: none” for span with class “ui-icon ui-icon-checkbox-off ui-icon-shadow”, to make it look like a button.
Any advice?
To hide the check-boxes:
http://jsfiddle.net/nirmaljpatel/N5r4A/7/
To close the dialog on selecting one of the options; you should REMOVE the multiple=”multiple” attrib from your select tag… ie change
to
On a multi-select list; following will close the open dialog when “Close” option is clicked.
Updated jsfiddle: http://jsfiddle.net/N5r4A/10/