$(function() { 'use strict'; window.utils = window.utils || {}; $.extend(window.utils, { toast: { show: function(message, type) { type = type || 'success'; var toast = $('#toastContainer').dxToast('instance'); toast.option('message', message); toast.option('type', type); toast.option('contentReadyAction', function(e) { console.log(e.element.parent().css('z-index')); e.element.css('z-index', 2000); }); toast.show(); } } }); });