$(document).ready(function() {
// here instead of height you can write anything
var height = $(".your-perent-class").outerHeight();
// here this is alert for define height
alert(height);
// here this your inner part which you want to same height of class add here
$(".youre-inner-class , .youre-inner-class2, .youre-inner-class2 ").css({
"height": height
});
// here you can use one class default uniqe selector also
$(".your-perent-class > * ").css({
"height": height
});
});
// here instead of height you can write anything
var height = $(".your-perent-class").outerHeight();
// here this is alert for define height
alert(height);
// here this your inner part which you want to same height of class add here
$(".youre-inner-class , .youre-inner-class2, .youre-inner-class2 ").css({
"height": height
});
// here you can use one class default uniqe selector also
$(".your-perent-class > * ").css({
"height": height
});
});
Comments
Post a Comment