From bfc1e642ab06dde83bebe5ceef3bf42e01fda1b3 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 3 Jun 2016 11:01:54 +1000 Subject: [PATCH] js test --- booking.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.js b/booking.js index 6aa03d8..e436e66 100644 --- a/booking.js +++ b/booking.js @@ -4,7 +4,7 @@ Drupal.ajax.prototype.commands.bookingEmailIDs = function(ajax, response, status) { jQuery(function($) { - var initValues = $('#booking_email_default_ids').val(); - alert(initValues); // this will be executed after the ajax call + var arr = $.parseJSON($('input#booking_email_default_ids').val()) + alert(arr.first()); // this will be executed after the ajax call }); } \ No newline at end of file