I'm trying to put this code to work in rails:
$(elem).popover({
title:"Brake activity",
content: $("<div>").append( $("#slider").slider({
range: "max",
max: maxValue,
min: maxValue / 5,
value: maxValue / 2}) ).eq(0).outerHTML(),
trigger: "manual"});
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 Get selected element's outer HTML.
I uploaded a screenshot showing how the slider appears: http://i48.tinypic.com/24azpkm.png