how to add two id's for jquery function : <p><a href="http://jsfiddle.net/o1hdh8rw/7/" rel="nofollow noreferrer">JSfiddle.</a></p>

<p>Here I am restricting zero at first position and I restricted that for a single field using it's id. Now I want to restrict the same for two fields. How can I achieve that functionality in a single function.</p>

<pre><code>$('input#abc#xyz').keypress(function(e){ 
   if (this.value.length == 0 &amp;&amp; e.which == 48 ){
      return false;
   }
});
</code></pre>
