Set Data Range For Numberfield

How to set data range for a numberField and use ajax when change value. I was search google and .../. but not see what. Everyone can help me if have solution. Thanks to everyone!


$this->widget('zii.widgets.jui.CJuiDatePicker',array(

    'name'=>'publishDate',

    // additional javascript options for the date picker plugin

    'options'=>array(

        'showAnim'=>'fold',

        'defaultDate'=>$model->StartDate,

        'dateFormat'=>'mm/dd/yy',

               'changeYear'=>true,

               'changeDate'=>true,

               'yearRange'=>'1960:1996',

    ),

    'htmlOptions'=>array(

        'style'=>'height:20px;'

    ),

));

I think this may help you…

Thanks for your’s help. But my problem is: CHtml::activeNumberField(). I want set dataRange for it to user choose and handle ajax when user change value.