dynamic data validation

wordpress

#1

how do i know that i solved all validation errors in my theme ?

and how to validate the printed javascript code from php ?