I have a dd element in my html page, class names are generated from database id, and in Java script file I use
theHeight=200;
$("dd."+i).css({height: theHeight});
this code works good in opera, chrome, IE 8, but doesnt work in FireFox 12.0
I need to change height of element in a css , but on a runtime from jquery. what is wrong with it, is there any way to make it work with FireFox
Thanks
Try setting it like this:
Or try appending ‘px’ to the height value: