Jak sprawdzić, czy atrybut danych istnieje w jQuery
if ($("#dataTable").data('timer')) {
...
}
Sikadner
if ($("#dataTable").data('timer')) {
...
}