// Usage: // jAlert( message, [title, callback] ) // jConfirm( message, [title, callback] ) // jPrompt( message, [value, title, callback] ) 1. Add a new public method of multicheckbox: // Public methods multicheckbox : function (message, value, title, callback) { if (title == null ) title = 'multicheckbox '; $.alerts._show(title, message, value, ' multicheckbox ', function (result) { if (callback) callback(result); }); },
2. In private method _show : Add control to multicheckbox in function (title, msg, value, type, callback){...}: // Private methods ------------ ------------Key part----------------------------- case 'multicheckbox ' : $("#popup_message" ).append(value).after('
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn