Whatever message this page gives is out now! Go check it out!

ColdFusion.Slider.getValue

Last update:
May 18, 2026

Description

Gets the numeric value of the slider control.

Function syntax

ColdFusion.Slider.getValue(name)

See also

History

ColdFusion 9: Added this function

Parameters

Parameter
Description
name
Specifies the value of the name attribute in the cfslider tag.

Returns

This function returns a numeric value.

Example

<h3>This is an example of the Slider.getvalue function. Click the Get Value button to get the value of the slider.</h3> 
 <script language="JavaScript" type="text/javascript"> 
 function getvalue(){ 
 alert("The slider is currently at: "+ColdFusion.Slider.getValue('sliderID')); 
 } 
 </script> 
 <br> 
 <cfform name="form01"> 
 <br/> 
 <cfslider name="sliderID" format="HTML" 
 vertical="false" width="350" 
 value="100" min="0" max="200" increment="10" tip="true"/> 
 <cfinput type="button" name="htmlbutton" 
 value="Get Value" onclick="getvalue()"> 
 </cfform>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page