Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can the jQuery UI automatically set the style?

I use the .button() method to set the style of buttons and other input elements.

But when I use javascript to create any other button, I need to call the .button() method again.

Can the jQuery UI automatically set the style like the .live() method (it can automatically set the event).

like image 585
Dozer Avatar asked Dec 06 '25 05:12

Dozer


1 Answers

Unfortunately, to my knowledge, this is not possible.

If you see yourself having to write .button() everywhere, consider writing a function to encapsulate that behaviour yourself.

like image 152
Ja͢ck Avatar answered Dec 07 '25 18:12

Ja͢ck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!