I am unable to create the jquery ui button dynamically without text and with icon.
var $ctrl = $('<input/>')
.attr({ type: 'button', name:'btn'})
.val('Action')
.button({icons: { primary: "ui-icon-close"},text: false});
This code creating ui button with text. how can i get the dynamic button with icon and without text.