title: jQuery HTML5 Speech Input
body: <p>I am trying to make jQuery make the search boxes on my page use x-webkit-speech and submit automatically.</p>
  
  <p>The HTML would obviously be: </p>
  
  <pre><code>&lt;input type="text" id="s" name="s" x-webkit-speech="x-webkit-speech" onwebkitspeechchange="this.form.submit();" /&gt;
  </code></pre>
  
  <p>I can add the x-webkit-speech attribute with jQuery, but I can't seem to get onwebkitspeechchange to work.</p>
  
  <p>This doesn't work since jQuery doesn't have a onwebkitspeechchange method  </p>
  
  <pre><code>jQuery("[name=s]").attr("x-webkit-speech", "x-webkit-speech").onwebkitspeechchange("this.form.submit()");
  </code></pre>
  
  <p>But I figured something like this would work: </p>
  
  <pre><code>jQuery("[name=s]").attr("x-webkit-speech", "x-webkit-speech").attr("onwebkitspeechchange", "this.form.submit()");
  </code></pre>
  
  <p>But it doesn't. It just doesn't do anything. How can I add <code>onwebkitspeechchange="this.form.submit();"</code> using jQuery?</p>