1
Good, I implemented a listing and I have a button where more elements appear. However, I want this button to disappear. I implemented this code, but the button does not disappear:
<script>
$("button").click(function(){
$("#fotos").fadeIn();
$("#button").hide();
});
</script>
The only thing that happens is the fadein of the photo listing with id=photos. Thank you.
Claudia, at first you used
$("button")
as an element, and in Hide$("#button")
as an id. I think there’s your mistake.– Pedro Camara Junior