How to use jQuery variable in css?

teuhakmohur

New Member
How can I use the value stored in var height, as value on for margin-top?\[code\]<script> $(document).ready(function(){ var height = $(window).height() / 2; $("a").click(function(){ $("#loader").css({"margin-top:", ***height}); }); });</script>\[/code\]Thanks in advance...
 
Top