Today, We want to share with you how to pass value from one html page to another using jquery.In this post we will show you how to pass textbox value to another page in jquery, hear for passing textbox value from one page to another page using html n javascript we will give you demo and example for implement.In this post, we will learn about how to pass value from one page to another in php with an example.
how to pass value from one html page to another using javascript?
get_data.httml
var memberslistdata = { "1": "pakainfo", "2": "tamilrokers", "3": "khatrimajaa" } localStorage.setItem('lists', JSON.stringify(memberslistdata));
OR IF INTPUT IS INSIDE FORM BETTER USER JQUERY SERIALIZER
var memberslistdata = $("#form").serialize();
results.html
var memberslistdata = localStorage.getItem('lists'); //pase the value var finalvalue = JSON.parse(memberslistdata); // it look like this { "1": "tamilrokets", "2": "jiorokers", "3": "bolly4u" };
jQuery Mobile: Sending data from one page to the another
HTML code
Structure
jQuery Code
$( document ).on( "pageinit", "#api", function( event ) { var allArguments = $(this).data("url").split("?")[1]; allArguments = parameters.replace("permalinksdata=",""); alert(allArguments); });
I hope you get an idea about passing values from javascript to html page.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.