I have a weird situation. my page as below:
<html>
<script>
$(document).ready(function(){
$("input").keyup(function(){
$("#mydiv").load("showlist.php?q="+this.value);
});
</script>
<input><br>
<div id="mydiv">ajax content appear in here</div>
</html>
my showlist.php as simple as:
echo $_GET['q'];
The page runs fine when I enter i.e: abcde in the text box {it means the content in the mydiv tag replaced by what output by showlist.php }. BUT when I type abcd efgh {it means it has ONE space in the string } then nothing appear within the div. It is just blank! What have I done wrong?