title: string interpolation with jQuery
body: <p>I'm trying to pass in the value of a variable to a jQuery selector but I can't seem to get it right. Here is what I'm working with:</p>
  
  <h2>jQuery</h2>
  
  <pre><code>var state = $("&lt;%= @state %&gt;").selector;
  </code></pre>
  
  <p>that captures this value -> <code>"pending"</code></p>
  
  <p>I'm trying to pass that value into this selector:</p>
  
  <h2>jQuery</h2>
  
  <pre><code>$(".snitches-index-header + .tags-column .#{state}_count")
  </code></pre>
  
  <p>As you can see I'm trying to pass the string into the jQuery selector. But this is not working as I expect. What am I doing wrong so that the selector would read:</p>
  
  <pre><code>$(".snitches-index-header + .tags-column .pending_count")
  </code></pre>
  
  <p>but obviously use the variable state instead of <code>pending</code>?</p>