title: replace "umlaute" like ÄÖÜ while typing
body: <p>i'm new at jquery scripting and hope you can help me.
  google can't :(</p>
  
  <p>i am trying to get a jquery script working, that replace some "umlaute" i.e. "Ä", "Ö", ...
  while the user is typing in a textbox.</p>
  
  <p>if a user write for example an Ä, than it should automatically replaced with a AE.</p>
  
  <p>thank you in advance,
  best regards</p>
  
  <p><strong>--
  edit:</strong></p>
  
  <p>the script, that i have trouble with, is the script below.
  it works for one letter (without if and else), but not when i want to run this with multiple replacement...</p>
  
  <pre><code>$(document).ready(function(){
    $("#uml").keyup(function(){
      $(this).val(function(i, v) { //index, current value
        if(v=="ä") { return "ae"; }
        if(v=="ö") { return "oe"; }
        else
         {
          return v;
         }
  }); });
  });
  </code></pre>
  
  <p>thanks in advance!</p>