ColdFusion.Slider.disable

Description

Disables the slider control.

Function syntax

ColdFusion.Slider.disable(name)

History

ColdFusion 9: Added this function

Parameters

Parameter

Description

name

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

Returns

This function does not return any value.

Example

<h3>This is an example of the Slider.disable function. Click the Disable Slider button to disable the slider.</h3> 
    <script language="JavaScript" type="text/javascript"> 
    function disable(){ 
    ColdFusion.Slider.disable('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="Disable Slider" onclick="disable()"> 
    </cfform>