In plain JavaScript, you can get the value of the class attribute of the specified element with className property, as shown below: JS; HTML; CSS. JS. 1. 2.
確定! 回上一頁