I would like to calculate the width of 2 divs and pass the sum in a third, all values stocked in variables.
HTML:
<div id="value-a"></div>
<div id="value-b"></div>
<div id="value-c"></div>
JQuery:
var value_a = $('#value-a').css('width');
var value_b = $('#value-b').css('width');
var value_c = (value_a + value_b);
$('#value-c').css('width', value_c);
It look like i'm wrong with the syntax to make the operation...
Many thanks in advance for your help.