javascript - Get the Ul li width and set it to the width of the ul li ul -


any way achievable? think like:

if( hover on element ) set child element width element width . 

but don't know how start it.

using jquery:

$("#hover_elem").hover(function () {     $(this)         .children()         .first()         .width($(this).width()); }); 

you should start tutorial (http://www.w3schools.com/jquery/default.asp) in order learn how use jquery. jquery easier javascript not understand how javascript works - , knowing jquery not means know javascript...


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -