0
我有一些複選框,當其中一人被選中返回存儲在data-parent
jQuery的獲取數據親值
的HTML值:
<input type="checkbox" name="" data-parent="some-parent">
jQuery的:
$(document).on('change', '.checkbox', function(event) {
alert($(this).data(parent));
});
這裏返回[object Object]