Autocomplete height and Button height
What am I doing wrong?
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>demo</title>
- <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css">
- <script src="http://code.jquery.com/jquery-1.10.2.js"></script>
- <script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
- <style type="text/css">
- #tags1 {
- height: 36px;
- }
- #but1 {
- height: 36px;
- }
- #tags2 {
- height: 30px;
- }
- #but2 {
- height: 36px;
- }
- </style>
- <script type="text/javascript">
- $(function() {
- var availableTags = ['Demo'];
- $('#tags1').autocomplete({
- source: availableTags
- });
- $("#but1").button();
- $('#tags2').autocomplete({
- source: availableTags
- });
- $("#but2").button();
- $('#tags3').height("36px").autocomplete({
- source: availableTags
- });
- $("#but3").height("36px").button();
- });
- </script>
- </head>
- <body>
- <input id="tags1" />
- <input type="submit" id="but1" value="Go" />
- <br /><br />
- <input id="tags2" />
- <input type="submit" id="but2" value="Go" />
- <br /><br />
- <input id="tags3" />
- <input type="submit" id="but3" value="Go" />
- </body>
- </html>