So I've discovered the jQuery UI .button()
function which can style <button>
elements:
$("button").butto开发者_运维知识库n();
This works very nicely. Is there something similar for <input>
, <div>
, or other elements?
You have discovered the jQuery UI plugin which adds the .button
function. There are many plugins available for jQuery. I can almost guarantee someone's written a plugin to do exactly what you want, but you haven't exactly described what it is that you want.
It's possible that .button
will do what you want to input:button
, a
, and div
elements.
精彩评论