虚拟主机域名注册-常见问题 → 网络编程问题 → JS | |||||||
textarea 添加一键回复 快捷发内容的方法 js超简洁
<textarea id="reason" name="reason" cols="50" rows="5">$reason</textarea> <select onchange="quotecomment(this.options[this.selectedIndex].value)"> <option selected="selected">下拉菜单选择快捷回复语句</option> <option value="梦搏网络太棒了,网址是:http://www.sinmeng.net">梦搏网络太棒了,网址是:http://www.sinmeng.net</option> </select> <script> function quotecomment(oo){ document.getElementById("reason").value=oo; document.getElementById("reason").focus(); } </script>
|
|||||||
>> 相关文章 | |||||||
没有相关文章。 | |||||||
发表评论 | |||||||