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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -