<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css"> <link rel="stylesheet" href="jquery.seat-charts.css"> <script src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="jquery.seat-charts.min.js"></script> <link rel="stylesheet" type="text/css" href="koncowastrona.css"> <script type="text/javascript" src="seatchart.js"></script> <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet"> </head> <body> <div class="wrapper"> <h2>Anna Kowalska</h2> <h3>wybrane miejsce:</h3> <ul id="sel-seat"></ul> <button class="gotomain-button" onclick="doStronyGlownej()">Następny student »</button> </div> </body> <script> function doStronyGlownej() { window.location = "przylozlegitke.html"; } //alert(localStorage.getItem('myElement')); //Przykładowa wartość $( document ).ready(function() { $("#sel-seat").text(localStorage.getItem('myElement')); }); </script> </html>