Is there a way I can set my height to be a percentage of the called width, by editing/adding to this js code? I want to do this in jQuery only, if possible.
var c1 = $('#gifcon').width();
$('#gifcon').css({
'height': c1 + 'px' //i need height to be 35% percent of this
});