Reputation: 25
I'm using a jQuery message box plugin from jquerymsgbox. What I'm trying to do is to display a message box and close it automatically using timeOut = 30sec.
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
timeOut:30000
});
The code posted isn't working. I'm just a beginner and don't know what to do.
Upvotes: 2
Views: 1169
Reputation: 911
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
autoClose:true
});
Use autoClose : true
Upvotes: 0
Reputation: 20977
You are missing something... add this right above timeout:30000
autoClose:true
So you have:
$.msgBox({
title: "Ooops",
content: "Ohh dear! You broke it!!!",
type: "error",
showButtons: false,
opacity: 0.9,
autoClose:true,
timeOut:30000});
Upvotes: 2