I have used following Jquery to show div on button click, with following code. But its not showing the div on button click.
$(document).ready(function(){
$("#addbutton").show();
$("#addchild").show();
$('#close').click(function(){
$("#addbutton").slideToggle();
});
});
Where addbutton is id of button, addchild is div that I want to show, and finally close is id of anchor that will close the div addchild.
Don’t reduce reputation, and if you are mention reason for that.
if you want to hide and show the div with id “addchild” while clicking the button with id “addbutton”: