Код: Выделить всё
$('div').data('info', 1);
alert($('div').data('info'));
//this works
$('div[data-info="1"]').text('222');
//but this don't work
Код: Выделить всё
$('div[data-example="example"]').html()
Подробнее здесь: https://stackoverflow.com/questions/149 ... ute-to-dom
Мобильная версия