Can jQuery user interface set style automatically?

I use a method .button()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 method again .button().

Can jQuery user interface automatically set style as method .live()(it can set event automatically).

+3
source share
2 answers

Unfortunately, as far as I know, this is not possible.

If you see what you have to write .button()everywhere, consider writing a function to encapsulate this behavior yourself.

+1
source

All Articles