How do I extract a style property
<div id="clipProperty" style="clip: rect(0px 281px 647px 0px);"></div>
and append it to # getClipVaalues with 30 subtracted from the the second value 281, so it says clip: rect(0px 251px 647px 0px) ?
<div id="getClipValues"></div>
This is my js code
var clipProperty = $('#clipProperty').attr('style');
$('#getClipValues').attr('style', clipProperty);
The property of clipProperty is not constant, but changes regularly. But I always need to subtract 30 from the second value.