Skip to content
Advertisement

jAlert and jConfirm not working correctly together

Here’s is my code

JavaScript

When I run this code alert (hi) appears first and then jAlert appears, but the control remains with alert (The “Ok” button of jAlert doesn’t work) but once I press “Ok” in the alert box disappears along with the jAlert and jConfirm pops up. And also if I remove the alert, jAlert doesn’t even appear it directly displays the jConfirm dialog box. The same type of thing happen if I change the order of jAlert with jConfirm.

I kind of guess the problem is due to some asynchronicity, but is there a solution or how could this kind of problem be handled?

Advertisement

Answer

html

JavaScript

Script

JavaScript

Also make sure you have below files placed

JavaScript
Advertisement