title: not able to change style attribute using javascript
body: <p><a href="https://i.stack.imgur.com/EUCi5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EUCi5.png" alt="First situation" /></a></p>
  <p>I want a small change in all <code>style</code> attribute of 'image' class in a HTML document.</p>
  <p>So i do this-</p>
  <p><a href="https://i.stack.imgur.com/WAG6p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WAG6p.png" alt="Second Situation" /></a></p>
  <p>In console window, the change is done and it returns new changed <code>style</code> attribute.</p>
  <p>But It remains unchanged in Element windows of chrome and show no effect of change.</p>
  <p>What i am doing wrong?</p>