navigate data between pages in jquery mobile without using external libraries -
how navigate data between pages in query mobile without using external library. have searched on google can't proper answer working correctly.
okay, preferably this:
in page want pass set sessionstorage item , in other page item: (this works persisting data untill session cleared)
window.sessionstorage.setitem("param1","12345"); window.sessionstorage.getitem("param1");
or use data-param="12345" in element (div, listview etc..):
<div id="divid" data-param1=""></div> $("#divid").data("param1", "12345");
and read in other page:
$("#divid").data("param1");
Comments
Post a Comment