I am trying to send data using Ajax Post method, but it is not functioning in windows server(plesk), and xampserver. Below is the ajax code. But it is functioning properly with other servers.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
<script>
$(document).ready(function() {
$('#checkbox').click(function() {
$.ajax({type : "POST",
url : "test.php",
data : "ffs=some data&ffs2=somedata2",
success : function(data) {
alert(data);
console.log(data);
}
});
});
});
</script>
<body>
Check box : <input type = "checkbox" name = "checkbox" id = "checkbox">
</body>
Thanks in advance.