-
Notifications
You must be signed in to change notification settings - Fork 0
/
home_ajax.js
32 lines (32 loc) · 849 Bytes
/
home_ajax.js
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
30
31
32
$(function(){
$("#rev_input_string").keyup(function(){
$.post("reverse.php",{ input:$(this).val()},function(result)
{
$("#reverse_string").val(result);
});
});
$("#sfl_input_string").keyup(function(){
$.post("shuffle.php",{ input:$(this).val()},function(result)
{
$("#sfl_string").val(result);
});
});
$("#count_input_string").keyup(function(){
$.post("count.php",{ input:$(this).val()},function(result)
{
$("#count_result").html(result);
});
});
$("#cap_input_string").keyup(function(){
$.post("cap.php",{ input:$(this).val()},function(result)
{
$("#cap_string").val(result);
});
});
$("#decap_input_string").keyup(function(){
$.post("decap.php",{ input:$(this).val()},function(result)
{
$("#decap_string").val(result);
});
});
});