結果 : how to make an input required in javascript