In coldfusion I have this part of the jquery ui slider script:
$("#slider-range_sun").slider({
range: true,
min: 0,
max: 1440,
step: 15,
values: [375, 1020],
The last line where it says values: [375, 1020] I need to set the numbers with coldfusion variables that are coming from the DB. Putting cfoutput around that line and outputting the variables with pound signs breaks the jquery. Any thoughts on how to do this?
Putting cfoutput around that line...breaks the jquery
That causes a CF error because CF thinks the pound sign in#slider
is the beginning of a CF variable. When you need a literal pound sign, escape it by using 2 pound signs:##slider