对input【text】的值在jquery中的html()方法在Firefox中得出来为空_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:55
Original
1066 people have browsed it

对input【text】的值在jquery中的html()方法在Firefox中得出来为空

有一段代码如下:
<script> <br /> $(function () { <br /> $("#btn1").click(function(){ <br /> $("#div2").append($("#div1").html()); <br /> }); <br /> }); <br /> </script>








在浏览器显示如下:


我IE里先修改text2的值,再点击Copy按钮后(把div1里面的html复制到div2中),这个时候是正常的,如下图,可以把text2修改后的值一起复制到div2中


下面用Firefox打开,先修改text2的值,再点击copy,这个时候只复制了原来生成的html,text2的中值是空的,如下图,

请问这个问题如何解决,哪位大哥遇到过

回复讨论(解决方案)

这个应该发到js那个版块吧

这个应该发到js那个版块吧
呵呵,都发过。。

楼主解决没,我遇到了同样的问题

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!