On the following website http://www.e-domov.cz/oblozkove-zarubne when you look to table "TYP"(TYPE in English) and change the radio button to the second one the javasscript dynamicaly generate text which you can see on the right panel.
It is happend by this part of code:
right3.php
Typ: <span id="zarubneStena"><?= $_SESSION['zarubneStena']; ?></span><br>
script.js
function nastavZarubneTyp2(value)
{
$('#zarubneStena').html(value);
$.get("/C/AJAX/typZarubne2.php", { zarubne: value});
}
typZarubne2.php
<?php
session_start();
$_SESSION['zarubneStena']=$_GET['zarubne'];
?>
oblozkove-zarubne.php
<td><input type="radio" name="typ<?php $uid=uniqid();echo $uid;?>" checked="checked" onClick="nastavZarubneTyp2('Na stěnu')"></td><td>Klasická obložková zárubeň</td>
<td><input type="radio" name="typ<?php echo $uid;?>" onClick="nastavZarubneTyp2('Do stavebního pouzdra');"></td><td>Obložková zárubeň pro posuvné dveře do stavebního pouzdra</td>
I don´t understand too much to this record:
Typ: <span id="zarubneStena"><?= $_SESSION['zarubneStena']; ?></span><br>
So i want some advice how to dynamicaly get the value of $_SESSION['zarubneStena'] which is generated in real-time by javascript/AJAX. I know, it's difficult to understand what i want, but i hope, that somebody helps. Thanks too much.
$('#zarubneStena').val();