我的HTML代码如下.
<div id="chatbox_dipesh.parmar" class="chatbox">
//html markup which is validated
</div>
Run Code Online (Sandbox Code Playgroud)
在上面的代码dipesh.parmar
div动态添加.
我正在使用以下代码访问它.
$("#chatbox_"+chatboxtitle).show();
Run Code Online (Sandbox Code Playgroud)
在哪里chatboxtitle
,dipesh.parmar
但它没有选择div.
.
对ID 不起作用.?
我的jQuery被加载,它与其他库没有冲突,也包装进去$(function(){ })
.
谢谢.