jQuery: attr(name)

attr(name)

値の取得
例)
$”a.othersite”.attr(“herf”)
(要素が指定属性を持っていない場合、関数はundefinedを返す。)

値の変更
例)
$”a.othersite”.attr(“herf”,”https://hoge.com”)

tagTimeLog Lite

Simple time tracking tool
Developed by Namu Works