Well, I've implemented a listing and I have a button where clicking on it adds more elements. However I want this button to disappear later. 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 listing of photos with id = photos. Thank you.