You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
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,
The text was updated successfully, but these errors were encountered: