title: Embedding jQuery slider in Bootstrap popover
body: <p>I'm trying to put this code to work in rails:</p>
  
  <pre class="lang-js prettyprint-override"><code>$(elem).popover({
    title:"Brake activity",
    content: $("&lt;div&gt;").append( $("#slider").slider({ 
      range: "max",
      max: maxValue,
      min: maxValue / 5,
      value: maxValue / 2}) ).eq(0).outerHTML(),
    trigger: "manual"});
  </code></pre>
  
  <p>Almost everything goes fine, but the slider does no work -- it seems to be disabled. Even if I define the option disabled to false, I got the same result. The method outerHTML() was extracted from <a href="https://stackoverflow.com/questions/2419749/get-selected-elements-outer-html">Get selected element&#39;s outer HTML</a>.</p>
  
  <p>I uploaded a screenshot showing how the slider appears: <a href="http://i48.tinypic.com/24azpkm.png" rel="nofollow noreferrer">http://i48.tinypic.com/24azpkm.png</a></p>