In my project I have a js file in which top and left of a div has set and it changes dynamically.i tried to override it with the following code
$("#buyoverlay").css('left',newaddwid);
$("#buyoverlay").css('top',newaddhit);
here newaddwid
and newaddhit
are two variables
It works fine in document.ready
function, but the next instance when position changes, js file top and left override this. How could i fix this problem?