Есть код:
Выберите:
<input id="f4" type="radio" name="etaj3" value="1" /> Первое
<input id="f4" type="radio" name="etaj3" value="2" /> Второе
Каким образом передать на другой файл значение $_POST['etaj3']
?
Для передачи значений из типа text использую такой код:
$(document).ready(function() {
$("#link").click(function() {
var f1 = document.getElementById('f1');
$.ajax({
url: "file.php",
type: "POST",
dataType: "html",
data: {
f1: document.getElementById('f1').value,
},
success: function(response) {
$("#contentST").html(response);
}
});
});
});
Буду благодарен за помощь.