diff --git a/booking.js b/booking.js index 1cb75d7..6aa03d8 100644 --- a/booking.js +++ b/booking.js @@ -2,6 +2,9 @@ * Special Effects AJAX framework command. */ Drupal.ajax.prototype.commands.bookingEmailIDs = function(ajax, response, status) { - var initValues = $('input:hidden#booking_email_default_ids').val(); - alert(initValues) ; // this will be executed after the ajax call + + jQuery(function($) { + var initValues = $('#booking_email_default_ids').val(); + alert(initValues); // this will be executed after the ajax call + }); } \ No newline at end of file