JSFiddle - React, Tailwind, and code Playground

by rwaldron

HTML

<p>
    jQuery does not support selecting IDs containing pluses or other non-word, non hyphen characters. Those 'other' characters are <a href="http://www.w3.org/TR/html5/elements.html#the-id-attribute">legal in HTML 5</a> but not matched by quickExpr's ID part ([\w\-]*)).    
</p>
<p id="a+b">
    Paragraph with id 'a+b': selected by document.getElementById('a+b') and coloured red.
</p>
<p id="c+d">
    Paragraph with id 'c+d': not selected by jQuery('c+d'), not coloured red.
</p>

JavaScript

jQuery(document.getElementById('a+b')).css({'color':'red'});
jQuery('[id="c+d"]').css({'color':'red'});