I have this html:
<input id='myId' type='button' data-this-page='myPage' />
If I want to change myPage to something else, I try this:
$("#viewer_next_page").data('this-page', 'newPage' );
Is this the correct way, because nothing seems to happen. I am making sure the element id created BEFORE the jQuery call as well.