I have a jQuery 1.4.2/jQueryUI 1.8 application where I'd like to style a button with an icon.
Buttons work, but icons do not. I've inspected the elements in the browser, and I don't see the classes for the icons being applied.
Here's the JavaScript that renders the buttons:
- <script type="text/javascript">
$(document).ready(function() {
$("input:submit").button({ icons: { primary: 'ui-icon-token' }});
});
</script>
The 'ui-icon-token' is a custom class with a Sprite for it, but I've also tested with a range of standard icons. I would expect the CSS class to at least show up.