This is my Html Snippet
<div class="style" title="Demo.1"></div>
<div class="style" title="Sample"></div>
I am trying to get an html element using the selector
$('[title=Demo.1]').html()
and i got this error message
jquery-1.8.3.js:4680 Uncaught Error: Syntax error, unrecognized expression: [title=Demo.1]
but it is working for $('[title=Sample]').html()
I think it is because of the decimal point "." Is there any other way to solve this