title: mouse right click paste allow only numbers in all browser
body: <p>I have input box jsfiddle link having a sample code i did
        <a href="https://jsfiddle.net/4rsv960t/173/" rel="nofollow noreferrer">https://jsfiddle.net/4rsv960t/173/</a>
      I want to allow paste event with only numbers if its not a number then automatically empty the text box.</p>
  
  <p>allow number only my sample code </p>
  
  <pre><code>$(".allownumericwithoutdecimal").on("keypress keyup blur",function (event) {
        console.log('allownumericwithoutdecimal called');
        $(this).val($(this).val().replace(/[^\d].+/, ""));
          if ((event.which &lt; 48 || event.which &gt; 57)) {
              event.preventDefault();
          }
       });
  
   &lt;input type="text" value="" class="allownumericwithoutdecimal"/&gt;
  </code></pre>