jquery - automaically change div height with other -


i have div in site named offers has auto height . have div called promotions. want make way if increase height of first div second div automatically change height according first div. how can that? thanks

<div class="offers">   </div>   <div class="promotions">   </div> 

demo - http://jsfiddle.net/victor_007/ma51tap3/

var = $('.offers').height() 

_increase height of first div second div automatically change height _

to check sibling

$('.offers').siblings('.promotions').height(a) 

or check next

$('.offers').next('.promotions').height(a) 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -