結果 : how to set active element in javascript