I am a Iphone developer now moving to phonegap for making cross plateform application.
I have stared learning jqueryMobile for uiDesgin.It is good.
Issue is her
I am only guessing the things i've understood from your text but I think what you are searching is how to pass parameters in jQuery Mobile between pages on different HTML (my proposed way 2 is the easiest for different html, otherwise same html different pages take solution 1 or 3).
There are three ways:
1) Use HTML5 attributes
a) in HTML page 1, you've got a link, where you need to know on page two the ID "1234", i hope you understood that this ID can be created dynamically:
c) in JS whereever you want e.g. pagebeforeload or onClick(): example is onClick:
$("#button").on('click', function (data) {
var anId = $(this).attr("data-emp");
$("#showParameter").html(anId)
});
2) Use the URL / Hashtag to pass a parameter
via URL:
a) a link again on page 1:
b) JS on page 2 for example on pageInit Event:
var parameters = $(this).data("url").split("?")[1];
parameter = parameters.replace("yourID=","");
3) via Hashtag: http://api.jquerymobile.com/jQuery.mobile.changePage/ by passing a hashtag, google a little bit there are a lot of ressources.
now you are able to work with the parameter on page 2 e.g. calling an ajax with parameter or whatever you want.
hope this helps.