objectdateadd.js 559 B

12345678910111213141516171819
  1. $(document).ready(function() {
  2. $("#dateadd").click(function() {
  3. var machine = $("#machine").val();
  4. var dateadd = $("#dateadd").val();
  5. var calendar = $("#calendar").val();
  6. var dateevent = $("#dateevent").val();
  7. $.ajax({
  8. type: 'POST',
  9. url: 'objectevent.php',
  10. data: {calendar:calendar, machine:machine, dateadd:dateadd, dateevent:dateevent},
  11. success: function (msg) {
  12. $('#message1').html(msg);
  13. }
  14. });
  15. });
  16. });