hey guys,
i'm trying to alter the css of a image using the following:
- preview.css({
'top' : preview_left,
'left' : preview_top,
'position' : 'relavtive'
});
although preview_left and preview_top have a value
- console.log(preview.css('top'));
it returns 0px
here is my jsfiddle:
http://jsfiddle.net/destramic/5jf9wwna/
for the life of me i can't see where it is I'm going wrong, if someone can help me on why the css properties aren't changing please
thank you