I
I
Ivan B2013-02-18 10:39:34
JavaScript
Ivan B, 2013-02-18 10:39:34

Undefined when accessing dataset in Chrome Mobile?

When clicking on a DIV,

alert($(this).data('price')) in Chrome on Android 4.2.1 gives undefined.
I can't figure out what's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan B, 2013-02-18
@hexes

sorry, habr sat down example:

<div data-price="170"></div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question