Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem applying Jquery UI theme to buttons

Tags:

html

jquery-ui

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

like image 750
eddy Avatar asked Jan 01 '11 23:01

eddy


1 Answers

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/

like image 74
Andrew Whitaker Avatar answered Oct 05 '22 21:10

Andrew Whitaker