The `resetButton` function in the `CHtml` class of the Yii framework is used to generate an HTML reset button element. The button will reset all form elements when clicked.
Example 1: Generating a simple reset button with default label and HTML options.
echo CHtml::resetButton();
//
Example 2: Generating a custom labeled reset button.
echo CHtml::resetButton('Clear Form');
//
Example 3: Generating a reset button with additional HTML options like class or id.
PHP CHtml::resetButton - 30 examples found. These are the top rated real world PHP examples of CHtml::resetButton extracted from open source projects. You can rate examples to help us improve the quality of examples.