Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event target not returning correct index value in IE 10 and less #29

Open
sagarchand opened this issue May 12, 2015 · 0 comments
Open

Comments

@sagarchand
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant