left = $("#myElement").offset().left - 120; top = $("#myElement").offset().top;
It turns out that 'top' is a IE keyword. By saying top = ***, it implies set top position to ***, and this = operation is not implemented in IE.
So changed top to something else solved the problem.
This code is working in all browser:
rLeft = $("#myElement").offset().left - 120; rTop = $("#myElement").offset().top;
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from JQuery Training . or learn thru ES6 Online Training India. Nowadays JavaScript has tons of job opportunities on various vertical industry.
ReplyDelete