html - Placing div over button on click -
i want place div on button once button clicked image below:
http://i.imgur.com/pdrqnmj.png
any ideas on how ?
put button , div panel in parent div. make popup div absolute , hidden.
.parent-div{ position:relative; } .popup-div{ position:absolute;top:0px;left:0px; z-index:10; display:none; }
show popup-div on btn click.
$(".btn").on("click", function(){ $(".popup-div").show(); });
Comments
Post a Comment