私は多くのラベルと1つの入力ファイルを持っています。jquery:ボタンをクリックしたラベルを取得する方法は?
<label for="uploadFile" data-albumid="1">upload Here</label>
<label for="uploadFile" data-albumid="2">upload Here</label>
<label for="uploadFile" data-albumid="3">upload Here</label>
<input id="uploadFile" type="file" style="display:hidden">
$('#uploadFile').on('change', function(e) {
// how to get the albumid data here ?
});
の可能性のある重複[データ-id属性を取得する方法?](http://stackoverflow.com/questions/5309926/how-to-get-the-data-id -attribute) –