I'm trying to apply a theme to my buttons (input type="button", input type="submit" and button) , but I haven't been able to get it to work, at least not in all of them, just in one, the "Add" button. According to this page, the only markup I need to apply a theme to a button , is simply this <button>Button Label</button>
. , but it just doesn't work.
I added a working demo on JSFiddle
I really hope you can help me out with this
You need to apply the button()
function for each <button>
or <input>
that you want styled as a button. You could add the following to your code:
$("button, input:submit, input:button").button();
Which would apply the jQueryUI button styles to all button
elements and input
elements of type button
or submit
.
I updated your example: http://jsfiddle.net/hjYyb/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With