$(document).ready(function() { $("#machine").change(function() { var machine = $("#machine").val(); var calendar = $("#calendar").val(); var dateget = $("#dateget").val(); $.ajax({ type: 'POST', url: 'typeobjectdesc.php', data: {calendar:calendar, machine:machine, dateget:dateget}, success: function (msg) { $('#message').html(msg); } }); }); });