Upon hovering over an image, I am looking to make the paragraph within this div disappear. Here's what I've tried:
$("#One1 img").hover(function(){
var par = document.getElementById('One1 p');
par.style.display = "none";
},function(){});
However, I'm encountering the error 'Uncaught TypeError: Cannot read property 'style' of null'
I understand that using getElementById for a div is simply
var par = document.getElementById('One1');
but how can I target the paragraph inside that div? Any help would be appreciated!