jQuery Mobile: Sending data from one page to the another

To pass values, let us say our is the following, with page new.html,

Structure

The JS will be:

$( document ).on( "pageinit", "#new", function( event ) {
   var myParam = $(this).data("url").split("?")[1];
   myParam = parameters.replace("structure=","");
   alert(myParam);
});
Updated on: 2020-01-29T08:18:17+05:30

239 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements