/** * 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 }