javascript - Hover div, show other div -


<div id="quickstart">     <asp:hyperlink id="hlhemenbasla" runat="server">deneyim paylaş</asp:hyperlink>         </div> <div id="visiblepanel" class="visiblepanel"></div> 

i have 2 divs on website.

while hovering on div#quickstart, div#visiblepanel should visible; @ other times, should not be.

i found code on internet, "couldn't run none".

first, make sure you're not self closing <script> tags.

it should be:

<script type="text/javascript" src="scripts/jquery-1.6.2.js"></script> 

not

<script type="text/javascript" src="scripts/jquery-1.6.2.js"/> 

then show/hide:

$('#quickstart').hover(function() {     $('#visiblepanel').toggle(); }); 

jsfiddle


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -