javascript - Change Text on another Div -


good evening community, have problem code.

html:

  <a href="aboutme.php">        <div class='aboutus'>             <div id="mbubble">                 stuff inside here             </div>         </div>    </a>    <div id='title'>         <div class="thome"><p style="letter-spacing:10;">text before</p></div>         <div class="tabout"><p style="letter-spacing:10;">text after</p></div> 

i want if hover on div "mbubble" class "thome" change it's text. tried making them visible / invisible.

css:

#mbubble:hover ~ .thome { visibility:hidden; } #mbubble:hover ~ .tabout { visibility:visible; } 

but it's sowhing no affect?

can tell me how that? or @ least way that's working change text hovering?

best regards, michael

how this:

$('#mbubble').hover(function () {        $('.thome').html('<p style="letter-spacing:10;">now different</p>'); }) 

Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -