Answer the question
In order to leave comments, you need to log in
How to configure the transfer of information in value from page A to page B?
Hello!
There is a working code, but not quite suitable:
On the page where to transfer information (B) we insert:
<script type="text/javascript"> $.get('/index/8-7', function (data) { $('#por1').html( $('#zanr', data).html() ) }); </script>
<span id="por1"></span>
<div style="display:none;"><div id="zanr">Жанры, стили: Классика</div></div>
<span id="por1"></span>
<input type="text" value="" id="por1">
Answer the question
In order to leave comments, you need to log in
If at least something is told to you by GET \ POST \ API, then use them, do not fool yourself. If you do not know, then I recommend filling this gap. Since this problem will be closed behind him.
For the rest, I also recommend mastering the basic principles of interacting with the DOM, because:
...
$('#por1').value = $('#zanr', data).html();
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question