下拉框任意输入和插入数据库的问题 本帖最后由 dinkhe 于 2014-08-30 11:02:24 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script language="javascript"> function changeF() { document.getElementById('makeupCo').value= document.getElementById('makeupCoSe').options[document.getElementById('makeupCoSe').selectedIndex].value; } </script> <span style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;width:188px; height:19px;clip:rect(-1px 190px 190px 170px);"> <select name="makeupCoSe" id="makeupCoSe" style="width:190px;height:20px;margin:-2px;" onChange="changeF();"> <option id='1' value='java'>java</option> <option id='2' value='c++'>c++</option> <option id='3' value='python'>python</option> <OPTION id="99999" VALUE="" SELECTED> </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="makeupCo" id="makeupCo" value="请选择或输入" style="width:170px;height:15px;border:0pt;"> </span> 通过js获取select选择值,填充到表单其他input,点击按钮执行submit,就会把填充值提交到服务端。 HTML5 的这可不也是很好吗 http://www.w3school.com.cn/tiy/t.asp?f=html5_datalist 请教像微博那样即时显示有新消息的PHP代码逻辑功能如何实现 不会XML,于是用了这样一个笨方法,但是还是不好用 input 接收 ajax 返回数据时提示对象不支持此属性或方法 统计某时间范围内的数量 请教一个PHP页面刷新的问题! PHP中匹配连接地址的正则怎么写啊? 谢谢了 php解析json的问题 请问取左边5个字符应该用什么函数? socket+smtp+php发邮件,需要配置吗? 如何使系统不弹出ActiveX的对话框 请教关于树型菜单的问题 求明路
<script language="javascript">
function changeF()
{
document.getElementById('makeupCo').value=
document.getElementById('makeupCoSe').options[document.getElementById('makeupCoSe').selectedIndex].value;
}
</script>
<span style="position:absolute;border:1pt solid #c1c1c1;overflow:hidden;width:188px;
height:19px;clip:rect(-1px 190px 190px 170px);">
<select name="makeupCoSe" id="makeupCoSe" style="width:190px;height:20px;margin:-2px;" onChange="changeF();">
<option id='1' value='java'>java</option>
<option id='2' value='c++'>c++</option>
<option id='3' value='python'>python</option>
<OPTION id="99999" VALUE="" SELECTED>
</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="makeupCo" id="makeupCo" value="请选择或输入" style="width:170px;height:15px;border:0pt;">
</span>