I have a text field in a page. now it doesnot insert data or anything…its like equation is showed and user has to answer in that field. value of textbox will be checked with value in session. Now I want to validate this button with numeric fields and custom validation. I dont have a form in this page as the equations changes with ajax request.
I don’t understand that best to way implement validation
-
Using active form mode
-
custom javascript on the page
or
if there is any other way that such validations can be done without creating a model…