title: Ruby on rails change local on onchange event
body: <p>I declared as onchange event as follows</p>
  
  <pre><code>:onchange=&gt;"$(this).format( {format:\"#,###.00\", locale:\"se\"} );
  </code></pre>
  
  <p>I want to replace locale <code>&lt;%= I18n.locale %&gt;</code> to this which I ve use in java script . How to replace the above by this?</p>