My html code is as below.
<div id="chatbox_dipesh.parmar" class="chatbox">
//html markup which is validated
</div>
in above code dipesh.parmar
div added dynamically.
And i am accessing it using following code.
$("#chatbox_"+chatboxtitle).show();
where chatboxtitle
is dipesh.parmar
but its not selecting div.
Does .
is not a valid for ID.?
My jQuery is loaded and its not conflicting with other library and also wrapped it into $(function(){ })
.
Thanks.
Escape the dot.
See this: Direction
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With