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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -