How to add jQuery UI Button icons to input buttons?
Posted
by jrummell
on Stack Overflow
See other posts from Stack Overflow
or by jrummell
Published on 2010-05-12T21:29:58Z
Indexed on
2010/05/12
21:34 UTC
Read the original article
Hit count: 207
Is it possible to use jQuery UI Button icons with <input type="submit">
elements?
The documentation example uses <button>
elements, but it does not explicitly say whether or not icons work with input buttons. I'd like to add icons to ASP.NET Button controls which render as <input type="submit">
.
This is what I've tried:
$("input.add").button({ icons: { primary: "ui-icon-circle-plus" } });
The button is styled correctly except for the missing icon. Am I missing something?
© Stack Overflow or respective owner