$('#elmLeft').button({
icons: {
primary: "ui-icon-triangle-1-w"
},
text: false
});
$('#elmRight').button({
icons: {
primary: "ui-icon-triangle-1-e"
},
text: false
});
$('#elmTop').button({
icons: {
primary: "ui-icon-triangle-1-n"
},
text: false
});
$('#elmBottom').button({
icons: {
primary: "ui-icon-triangle-1-s"
},
text: false
});
$(‘#elmLeft’).button({ icons: { primary: ui-icon-triangle-1-w }, text: false }); $(‘#elmRight’).button({ icons: { primary: ui-icon-triangle-1-e
Share
Alternatively you could just take the selector instead of a jQuery element, and only the last letter of the string, but that seems like overkill.