aktuelle.kurse/m133/4_Modulinhalte_und_Uebungen/07-JQuery-skript/07-jQueryLoesungen/jQuery7.html
Harald G. Mueller 28ff49e098 muh
2023-06-29 07:50:41 +02:00

29 lines
807 B
HTML

<!DOCTYPE html>
<!https://www.w3schools.com/jquery/ajax_get.asp>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.js""></script>
<script type="text/javascript">
$(document).ready(function() {
$("#btn1").click(function () {
$('#iofield').val("");
// alert("Test1");
$.getJSON("http://localhost/M133/jquery/jquery7.php", function(data) {
// alert("Test2" +data);
$('#iofield').val(data);
});
});
});
</script>
</head>
<body>
<h2>Show return value from PHP JSON Call</h2>
<div id='input'>
<input type="text" size="40" id="iofield" name="iofield" />
<input type='button' id='btn1' value='CALL PHP Function JASON value return' />
</div>
</body>
</html>