jQuery load method doesn't work -
can me guys? script doesn't work properly.
$("#submit").click(function(e) { /* ajax stuff */ else if(data=="login"){ $("#login").remove() // #login first , 1 direct child of body $("body").load("includes/adminpanel.php") } });
so, ajax checks username , password , if it's correct script should remove #login (it works) , loads new content contained in "adminpanel.php". script doing same thing every time: #login div disappears, "adminpanel.php" doesn't show , browser acts i'm running infinite loop. (sorry english!)
Comments
Post a Comment