So i’v been going though the tutorial on: http://jqueryfordesigners.com/play-school-easy-ajax-load/ (site seems a bit slow at the moment BTW)
I’v tried using:
if(this.value.length > 0) {
But it doesn’t seem to work. When I type something into the input forum it will load the test1.php every time even if I just press say shift. (this is not what I want, I want it to only refresh if I type in a actual letter or number)
The main javascript I’m working with:
$(document).ready(function () {
$('#name').keyup(function () {
// if(this.value.length > 0) {
$('#results ul').load(
'test1.php #results li'
, { name : this.value }
);
// }
});
});
Any pointers?