title: How can I allow numeric only in Swal Sweetalert
body: <p>I wanted to know how could I allow only numeric on this part.</p>
  
  <pre><code>  {
      title: "Dollar Amount?",
      text: "How much is your Dollar Question worth?",
      inputPlaceholder: "Enter Amount"
    }
  </code></pre>
  
  <p>I'm using a Sweetalert plugin . It's been bugging me for days and I'm just new to front-end, I'm really a full backend guy.  </p>
  
  <pre><code>function showDollarQuestion() {
  
  if (inUserId === "" || inUserId === null) {
      socket.emit('stud notif', myuserid,myuserid,"noroom");
  }else{
      swal.setDefaults({
        input: 'text',
        confirmButtonText: 'Next &amp;rarr;',
        showCancelButton: true,
        animation: false,
        progressSteps: ['1', '2']
      })
  
      var steps = [
        {
          title: "Dollar Question?",
          text: "Ask a question to your influencer",
          inputPlaceholder: "Write your Dollar Question"
        },
        {
          title: "Dollar Amount?",
          text: "How much is your Dollar Question worth?",
          inputPlaceholder: "Enter Amount"
        }
      ]
  
      swal.queue(steps).then(function (result) {
          if (result[1] === "" || result[1] === "") {
              swal.resetDefaults()
                  swal({
                  title: 'Empty Field!',
                  html:
                    'Dollar Question is required&lt;br /&gt;Dollar Amount is required',
                  confirmButtonText: 'Try Again',
                  showCancelButton: false
              })
          }else if(){
  
          }else{
              swal.resetDefaults()
              swal({
                  title: 'All done!',
                  html:
                    'Your Dollar Question is '+JSON.stringify(result[0]).replace(/\"/g, "")+
                    '&lt;br /&gt; Dollar Question worth is '+JSON.stringify(result[1]).replace(/\"/g, ""), 
                  confirmButtonText: 'Great, your question has been successfully submitted to your influencer',
                  showCancelButton: false
              })
              socket.emit('dollar quest', JSON.stringify(result[0]).replace(/\"/g, ""), JSON.stringify(result[1]).replace(/\"/g, ""), inUserId, myuserid, 'dquest');
  
          }
      }, function () {
        swal.resetDefaults()
      })
  }
  }
  </code></pre>
  
  <p>So far this is all the code I got. And I can't find any tutorial about this Sweetalert thing. Thanks in advance guys</p>