title: Is there a way to concatenate strings in html attributes?
body: <p>I'm using MVC3 and I wanted to use a partial view to create dynamic DOM elements. This is my current partial view:</p>
  
  <pre><code>@model MVCApp.ViewModels.TitlesViewModel
  
  &lt;div class="display-label"&gt;Name&lt;/div&gt;
  &lt;div id="label"+"@Model.Id" class="display-field"&gt;@Model.InitValue&lt;/div&gt;
  </code></pre>
  
  <p>Model.Id is 1 but in the HTML in the browser, I currently get:</p>
  
  <pre><code>id="label"+"1"
  </code></pre>
  
  <p>So if I try and do something like:</p>
  
  <pre><code>alert($("#label1").text())
  </code></pre>
  
  <p>There's an alert box with nothing in it.</p>
  
  <p>So how can I add the two strings together to form one coherent string that is recognized by jQuery (or document.getElementByID(str) for that matter).</p>