Standaard Button
HTML:
<button>Verstuur</button>
JavaScript:
$('button').button();
Resultaat:
Button met custom icon
HTML:
<button class="button_email_go">Verstuur</button>
JavaScript:
$('button').button({icons: { primary: 'button_email_go' }});
CSS:
.ui-button .ui-icon.button_email_go { background-image: url('icons/email_go.png'); width: 16px; height: 16px; }
Resultaat:
Meer informatie: jQuery UI - Button Demos & Documentation | famfamfam.com: Silk Icons