-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.php
29 lines (29 loc) · 1.07 KB
/
index2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script type="text/javascript">
$(document).ready(function() {
$('#eingabe').keyup(function() {
var inputtext = $('#eingabe').val();
$.ajax({
url: "data.php",
type: "POST",
data: {data : inputtext},
success: function(data){
$('#eingabe').val(data);
}
});
});
});
</script>
</head>
<body>
<form>
<h3>Textsäuberer</h3>
<input type="text" id="eingabe" value="" placeholder="Eingabe" />
</form>
<p id="result"></p>
</body>
</html>