title: jQuery selector with variable
body: <p>I need to select all images whose filename contain a certain string (variable) using jQuery. I am using:<br>
  <code>var str='-out.';<br>
  $('img[src*='+str+']'). //do something</code></p>
  
  <p>It works but fires the following warning in Firefox: " Expected ']' to terminate attribute selector but found '.' " Would someone know how to avoid this warning ?</p>
  
  <p>Thank You</p>