I want the <p> Sharing </p> text to change depending on the div you hover
Javascript
<script>
$(".conwrap4").find("fbshare").each(function(){ //look for each img inside the #container div
$(this).mouseover(function(){ // and when the mouse is over it
$("p").html($(this).attr("Share on Facebook")); // put the img source as h2 text
})
})
</script>
The first thing is that you have capital C for your classname but you try calling it with conwrap4 and not Conwrap4. Then you are trying to find fbshare and not .fbshare.
$(".Conwrap4").find(".fbshare")
However, I can’t follow the logic of your code as surely you just need to cyle through elements with the same classname and then display text from an attribute as required.