Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;(function ($) {
- $(document).ready(function () {
- //alert(mealurl.ajaxurl);
- $("#reserv").on('click', function () {
- $.post(mealurl.ajaxurl, {
- action: 'reservation',
- name: $("#name").val(),
- email: $("#email").val(),
- phone: $("#phone").val(),
- persons: $("#persons").val(),
- date: $("#date").val(),
- time: $("#time").val(),
- rn: $("#rn").val()
- }, function (data) {
- if (data == "Successful"){
- $(".reset").val();
- }
- console.log(data);
- });
- return false;
- });
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement