/** * Special Effects AJAX framework command. */ 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 }); }