I have written this validation rule in Model
but want to validate form data without pressing submit button.
Code:
public $validate = array(
'title' => array(
'rule' => 'notEmpty'
)
);
Do i need to put these rules in function to apply javascript?
without pressing button and for processing you can do this with java script, like
Or with jQuery or any another library used for project