js 代码
java 代码
- <html>
- <head>
- <title>既可输入又可选择的组件</title>
- </head>
- <body>
- <form>
- <span>
- <input name="Department1" id="Department1" style=" border-right:0;width:123" autocomplete="off">
- </span>
- <span style="width:150;overflow:hidden">
- <select style="width:150;margin-left:-130" onChange="Department1.value=value">
- <option value=""></option>
- <option value="asdfasfadf">asdfasfadf</option>
- <option value="546546">546546</option>
- </select>
- </span>
- </form>
- </body>
- </html>