Hi.
I’ve added some meta boxes to Post. (Not Custom Post Type)
Now I need a validation system on inputs.
For example I have “Reference Code” and “Weight” meta boxes, and both of them have to be numeric (not any other characters) and one of them is required.
And of course I want if there is an error in validation, the post publish does not happen.
Is there any built-in wordpress function or jQuery class to handle this?