From d3ef2572a1e154dddeb5d4a77f0cb96169df3135 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 3 Jun 2016 10:58:32 +1000 Subject: [PATCH] js test --- booking.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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