title: store attr style in a variable
body: <p>Is there a way to store style attr in a variable using JS ?</p>
  
  <p>I tried this <a href="https://jsfiddle.net/c4e9eoqm/" rel="nofollow">example</a></p>
  
  <pre><code>&lt;div style="width: 100px; height: 100px; background: cyan"&gt;&lt;/div&gt;
  
  var style = 'style="' + $("div").attr('style') + '"';
      alert(style);
  </code></pre>