jquery的find获取不到append追加的html()中的input的值 jqueryappendhtmlfind获取不到append内容 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <link href="Resources/css/validatorAuto.css" rel="stylesheet" /> <script src="Resources/js/jquery-1.4.4.min.js"></script> <script src="Resources/js/formValidator-4.0.1.min.js"></script> <script> $(document).ready(function () { var ss = $('#xxx').html(); $('#aa').append(ss); }); </script></head><body> <div id="xxx"> 啊呀呸 </div> <div id='aa'> 呵呵 </div></body></html>看下你xxx div的结速标签对不 jq方法你调用没 应该是没append成功,在append之后打印出<div id='aa'>的html内容,看看是什么 append后面跟的是HTML节点你那个ss返回值是string字符串根本不是节点对象没法添加成功!所以你添加上就失败更别说获取添加后的值了 使用jquery的find()是发现不了的,貌似是jquery的一个漏洞 帮看一段JS 谢谢 关于层的关闭开启 请教一下怎样能同时执行onbeforeunload和onunload?发现前者会阻止后者执行,怎么能都执行? 解释~~ 一种打断被闭包引入的循环引用的窍门是添加另外一个闭包,应该如何理解? 为什么没有选中效果? 在ifrme中得到主页面的session的值 如何让页面不显示地址栏(除了window.open的方式)? 如何调用SVG中的script ? 如何用一个checkbox控制一个checkbox 组的选中或不选中状态 显示div的时候,行被撑大了,怎么解决 怎么实现百度移动端首页限制划动的效果? 啊啊啊啊啊!!!这该怎么办呢?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="Resources/css/validatorAuto.css" rel="stylesheet" />
<script src="Resources/js/jquery-1.4.4.min.js"></script>
<script src="Resources/js/formValidator-4.0.1.min.js"></script>
<script>
$(document).ready(function () {
var ss = $('#xxx').html();
$('#aa').append(ss);
});
</script>
</head>
<body>
<div id="xxx">
啊呀呸
</div>
<div id='aa'>
呵呵
</div>
</body>
</html>
看下你xxx div的结速标签对不 jq方法你调用没
所以你添加上就失败更别说获取添加后的值了