結果 : javascript check if dom element has attribute