In the documentation for .data(), there is an example div: <div data-role="page" data-last-value="43" data-hidden="true" data-options='{"name":"John"}'></div> The accompanying example contains this: All of the following jQuery code will work. ... 2 $( "div" ).data( "lastValue" ) === 43; The example should be corrected to be more accurate.
In the documentation for .data(), there is an example div:
The accompanying example contains this:
All of the following jQuery code will work.
...
2 $( "div" ).data( "lastValue" ) === 43;
The example should be corrected to be more accurate.