jQuery.msgBox is a plug-in to make it smarter to display messages. I use jQuery.msgBox in my code. It works fine, but I need to add an HTML select/option element to the displayed message. How can this be done?
Please look at an example code I use:
$.msgBox({
title: "Nowy jadłospis",
type: "prompt",
inputs: [{ header: "Podaj nową nazwę jadłospisu."},
{ header: "Podaj opis jadłospisu."},
{ header: "Podaj komentarz do jadłospisu."}],
buttons: [{ value: "OK" }, {value:"Anuluj"}],
success: function (result, values) {
if (result == "OK") {
do something...
}else{
$.msgBox({
title:"Błąd!",
content:"Podano nieprawidłową nazwę jadłospisu.",
type:"error"
});
}
}
}
});