How to concatenate string that has both (" ") and (' ') in a String
<p>I want to concatenate a string but i am facing problem. Actually i have both (" ") and (' ') in the string. Here it is </p>

<pre><code>var $a = $ul.find("li a[title='Image 1']").addClass("active");
</code></pre>

<p>I want to relace one(Image 1) with a variable</p>

<pre><code>imageIndex = parseInt(imageIdArray[1]) + 1;
var $a = $ul.find("li a[title='Image +imageIndex']").addClass("active"); //Replace 1
</code></pre>

<p>How can i concatenate it?</p>

<p>Thanks</p>
