I have a file where I take information from a JSON and insert it into a div:
document.getElementById('display_area').innerHTML += "<p>" + jsonData[obj]["name"] + "</p>";
I want to be able to hover over this data and fade it out, so I have:
$( "p" ).hover(function() {
$( "p" ).fadeOut( 100 );
});
The problem is, it doesn't recognize it as a p, so it doesn't do anything.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/z6cxWmK
Comments
Post a Comment