Editor's input validation with jQueryValidation

Editor's input validation with jQueryValidation

ansarigmbhansarigmbh Posts: 24Questions: 7Answers: 0

Hi :-)

I saw your example about validation (http://editor.datatables.net/examples/api/clientValidation.html). If we want to have a client-side validation we should using "preSubmit" event and validate input.

I want to use jQueryValidation (http://jqueryvalidation.org) because it's very easy to use and can work with attributes that we insert in "attr" option but I don't know how can I implement it.

Please help me ...

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Hi,

    Currently there is no option to use jQueryValidation in Editor. The reason for this is that the validation has to be done at the server-side anyway, so rather than duplicating the validation logic, it would just be written once. However, I realise that many do want to validate data and both the client and the server, and I will be putting validation hooks into Editor in future, but currently preSubmit is the way to do it.

    Allan

  • ansarigmbhansarigmbh Posts: 24Questions: 7Answers: 0

    Thanks :-)

This discussion has been closed.