Skip to content Skip to sidebar Skip to footer

Jquery :automatically Change The Width Equal To An Element

First, sorry for my english is bad :) dm3 a width depends on the tx1...n, tx1...n automatically sorted 2-3-4 -... column width when the window is changed, or a different module app

Solution 1:

I think something like this should work for you:

JS Fiddle Example

$(window).on('load resize', function() { // On load or window resizevar dm3Width = $('.dm3').width() // Get dm3 width
    $('.dm1').width(dm3Width); // Make dm1 width match dm3 width
});

Post a Comment for "Jquery :automatically Change The Width Equal To An Element"