如何使用jQuery获取选中的复选框值,并立即将其放入 textarea?
就像这段代码:
<html>
<head>
</head>
<body>
<div id="c_b">
<input type="checkbox" value="one_name" checked>
<input type="checkbox" value="one_name1">
<input type="checkbox" value="one_name2">
</div>
<textarea id="t"></textarea>
</body>
</html>
如果id="c_d"
由Ajax更新,则下面的 altCognito 代码不起作用。有什么好的解决办法吗?