I’d like to apply the jQuery UI theme to a button but I couldn’t! Why? Here’s the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<script src="_code/js/jquery.js" type="text/javascript"></script>
<script src="_code/js/jquery-ui-1.10.0.custom.min.js" type="text/javascript"></script>
<link href="_code/css/redmond/jquery-ui-1.10.0.custom.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<button>Button</button>
</body>
</html>
The result is a normal button without jQuery UI theme!
Thanks in advance
jQuery UI, unlike, say, jQuery Mobile, does not automatically apply widgets to the elements in your page.
You have to explicitly create a button widget around your
<button>element: