title: How to add HTML input into sweet alert?
body: <p>I am trying to add radio button into dialog box using sweet alert but I'm not able to do it. Following is the code:</p>
  
  <pre><code>swal({
          title: "&lt;small&gt;Please select an reason to cancel this job !&lt;/small&gt;",
          type: "warning",
          text:"&lt;input type=\"radio\" name=\"reason\" value=\"male\"&gt;Reason 1&lt;br&gt;&lt;input type=\"radio\" name=\"reason\" value=\"female\"&gt;Reason 2&lt;br&gt;&lt;input type=\"radio\" name=\"reason\" value=\"female\"&gt;Other Reason",
          showCancelButton: true,
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "Yes",
          cancelButtonText: "No",
          closeOnConfirm: false,
          closeOnCancel: false,
          html: true
      },
              function(isConfirm){
                  if (isConfirm) {
                      swal("Result !","Job cancelled successfully.");
                  } else {
                      swal("Cancelled  !", "Process aborted");
                  }
              });
  </code></pre>