[jQuery] Jquery and math (resize image through a slider?)
I want to scale images via Jquery's UI slider much like this:
$('.imageExample').css('height', ui.handle.css('left'));
But I don't want to do it in a "ratio 1:1 way" i would like to say:
$('.imageExample').css('height', ui.handle.css('left') / 200 * 100 );
But this does not work? How do I do math operations in Jquery /
JavaScript correctly?