I am trying to add css property to my css variable in Jquery.
var cssProp = {
'position': 'absolute',
'top': topPos,
'left': leftPos
}
//this codes works
cssProp.top += 10;
//this is not..
cssProp.z - index = 10;
How to fix this? Thanks a lot!
cssProp.zIndex=10;?