title: LocalStorage on button click
body: <p>i have page register here
  and i wanna use LocalStorage to show email verifiaction after register.
  but i still confuse with method after click and before click.</p>
  
  <p>i have notification here</p>
  
  <pre><code>&lt;div class="alert success"&gt;
  </code></pre>
  
  <p>and i have input button here</p>
  
  <pre><code>&lt;input type="submit" class="btn btn-default size-new-account" value="&lt;?php esc_attr_e( 'Create new account', 'woocommerce' ); ?&gt;" /&gt;
  </code></pre>
  
  <p>i set a localstorage on script like</p>
  
  <pre><code>localStorage.setItem('register1','.alert.success');
  jQuery('input.btn.btn-default.size-new-account').click(function(){
  var reg = localStorage.getItem('register1');
  });
  </code></pre>
  
  <p>but it wont works.
  the div notification i set display: none; in .css</p>