I have a website that has a "shop" where you can use "coins" to buy stuff. Right now, I am creating the shop and testing it out so please take a look at it here http://coinawards.net63.net/structure/shop.php
So when you click the box that says "Buy for 40 coins" it will pop up a light blue box that says "added to your cart".
Right now, my code says that once the 'buy' button is BLURRED, the popup should disappear... but it doesn't. I'll post my code below in the hopes that someone knows how to fix it!
Code:
function init()
{
var buyinfobutton = $(".buyinfo");
buyinfobutton.on("click",AddToCart);
buyinfobutton.on("blur",popUpVanish);
$('#confirmbox').hide();
}
onload = init;
var shoppingcart = {};
function AddToCart()
{
// This is called properly.
$('#confirmbox').show('normal');
}
function popUpVanish()
{
// This is never called!
$('#confirmbox').hide();
}
Also, if you see my site and think it need some improvement on an area (some parts are bad, I know) please note it down as well! Thanks!