• Is it ok, to validate some data using jquery?
    I am working on a plugin which has repeater fields in widgets, so my plan was to convert all repeater field data in json when user clicks on save button. Data which i want to validate is zipcode and text fields.
    I am not sure, if this is allowed.

Viewing 1 replies (of 1 total)
  • It is Ok, as long as you also validate it server side with PHP before saving it ??

    JavaScript validation can be easily circumvented if wanted. It is useful for giving the user faster feedback if the data he entered was correct or not (Without needing to send the data to the server, validate it there and wait for the response). However, as JavaScript runs client side, it can easily be manipulated so you shouldn’t rely on it for security. You should also do validation server side.

Viewing 1 replies (of 1 total)
  • The topic ‘Can we validate data from jquery’ is closed to new replies.