jQuery val 到 div
我想将 select 的值发送到 div。但我找不到将文本复制到 .email_value 的解决方案,有人可以帮我解决这个问题吗?已经感谢您抽出时间了。
$(document).ready(function() {
$("#email_mail").change(function() {
alert($(this).val());
});
});
<div class="email_value"></div>
I want to send the value of a select to a div. But i can't find the solution to copy the text to the .email_value, can somebody help me with this one. thank you already for your time.
$(document).ready(function() {
$("#email_mail").change(function() {
alert($(this).val());
});
});
<div class="email_value"></div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://jsfiddle.net/4PhHL/
http://jsfiddle.net/4PhHL/
你有的地方:
使用
Where you have:
use
这是同一代码在选择时打开电子邮件 mailto 的另一个示例。
http://jsfiddle.net/4PhHL/2/
Here is another example of the same code opening an email mailto on select.
http://jsfiddle.net/4PhHL/2/