可选择也可输入的下拉框

TW之运行代码插件--Ayin增强版

    <html>
    <head>
    <title></title>
    <style type="text/css">
    div,span,p,td,font{font-size:9pt;}
    </style>
    </head>
    <body>

    <span style="absolute;margin-top:-12px;">
    <table cellspacing="0" cellpadding="0" width="100%" border="0"><tr><td align="left">

    <span style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;width:188px;height:19px;clip:rect(-1px 190px 190px 170px);">
    <select name="aabb" id="aabb" style="width:190px;height:20px;margin:-2px;" onChange="javascript:document.getElementById('ccdd').value=document.getElementById('aabb').options[document.getElementById('aabb').selectedIndex].value;">
    <option value="" style="color:#c2c2c2;">---请选择---</option>
    <option value="北京">北京</option>
    <option value="上海">上海</option>
    <option value="天津">天津</option>
    </select>
    </span>
    <span style="position:absolute;border-top:1pt solid #c1c1c1;border-left:1pt solid #c1c1c1;border-bottom:1pt solid #c1c1c1;width:170px;height:19px;">
    <input type="text" name="ccdd" id="ccdd" value="可选择也可输入的下拉框" style="width:170px;height:15px;border:0pt;">
    </span>

    </td></tr></table>
    </span>

    </body>
    </html>

 

posted @ 2013-05-30 17:58  liuliu_刘刘  阅读(160)  评论(0)    收藏  举报