title: jQuery with the plus sign
body: <p>I wonder why jQuery doesn't allow "+" sign. Here is an example of how it works with "1" and "3" but not with "2+". Just mouse-over the text above every div.</p>
  
  <pre><code>&lt;div id="div-2+"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><a href="https://jsfiddle.net/53spt4hb/" rel="nofollow">JSFiddle</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('a.hover').mouseover(function() {
  
      dataI = $(this).data('i');
  
   $('div#div-' + dataI).addClass('h');
  
  });
  
  $('a.hover').mouseout(function() {
  
      dataI = $(this).data('i');
  
   $('div#div-' + dataI).removeClass('h');
  
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>a {
      display: inline-block;
      width: 100px;
      margin: 60px 20px 60px 0;
      text-align: center;
  }
  
  div {
      display: inline-block;
      width: 100px;
      height: 100px;
      margin-right: 20px;
      background-color: #ddd;
  }
  
  div.h {
      background-color: #f00;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;a class="hover" data-i="1"&gt;DIV 1&lt;/a&gt;
  
  &lt;a class="hover" data-i="2+"&gt;DIV 2+&lt;/a&gt;
  
  &lt;a class="hover" data-i="3"&gt;DIV 3&lt;/a&gt;
  
  &lt;br /&gt;
  
  &lt;div id="div-1"&gt;&lt;/div&gt;
  
  &lt;div id="div-2+"&gt;&lt;/div&gt;
  
  &lt;div id="div-3"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>