結果 : how to check input type in javascript