Can someone clarify or explain to me the difference between these two situations
$.data(this, 'timer')
Or
$(this).data('timer');
Can someone clarify or explain to me the difference between these two situations
$.data(this, 'timer')
Or
$(this).data('timer');
The documentation confirms this:
Note: This is a low-level method; more convenient
.data()
is also available.Note: This is a low-level method; a more convenient
.data()
also exists.