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).
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.
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