結果 : how to validate in javascript