A: 

I tend to use the ajax method. But you could write the following.

 $.ajax({
          type: "GET",
          url: "get_availability.php",
          data: "to=" + to + "&from=" + from,
          success: show_availibility
     });
rbaker86
You should use `data: {to: to, from: from},`
Matt
You certainly can. In fact, Nikos could write:$.get("get_availability.php", { to: to, from: from}, show_availibility );
rbaker86
I tried it but it doesn't return anything. Can you imagine why that happens?
Nikos
Try binding the change event to your selectors, rather than putting them in a function. e.g. $('#to, #from').bind('change', check_availability);
rbaker86
Thanks! works great now!
Nikos