Custom Icons on JQuery UI Button
Howdie,
I have searched the forums and google for an answer to this and it seems pretty much every answer is out of date and doesn't work. After spending a couple of hours banging my head I'm stumped.
I simply want to replace the icon in a JQuery UI button with a custom icon. I have been attempting to do it this way based upon numerous posts I have found:
- .icon_help {
- background-image: url(../image/Help_16x16.png) !important;
- width: 16px;
- height: 16px;
- }
And then specifying it:
- $('#btn_help').button({
- icons: { primary: 'icon_help' },
- text: true
- });
I have tried numerous variations on this based upon various posts and none of them work.
Can someone please post a simple example of replacing the icon in jquery ui button?
Thanks,
Nick