I'm trying to get the index of the element (relative to its parent) that is being resized like below
$('.myoptions li').resize(function(e) {
var changedRow = $(this).index(),
newHeight = $(this).height();
$('.dynamic-row-height'+changedRow).height(newHeight);
})
This is working gr8 in chrome, FF& IE11. But in IE 10 and less the changedRow is always retured as -1 instead of the actual index value.
Hi,
I'm trying to get the index of the element (relative to its parent) that is being resized like below $('.myoptions li').resize(function(e) { var changedRow = $(this).index(), newHeight = $(this).height(); $('.dynamic-row-height'+changedRow).height(newHeight); })
This is working gr8 in chrome, FF& IE11. But in IE 10 and less the changedRow is always retured as -1 instead of the actual index value.
Any help would be much appreciated.
Thanks,