Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<div id="job" data-job-id="3054>jobs status</div>
上記ノードのデータ属性値の値を取得する方法。
javascript .getAttribute() メソッドを使用するだけです。
var val = document.getElementById('job').getAttribute('data-job-id');
より良い解決策として
console.log(e.target.dataset.job-id)