Click here to Skip to main content
16,006,341 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
SweetAlert- working fine in chrome and firefox, but not working in IE <pre>

What I have tried:

<pre>  <a id="download" href="#">Click here to download</a>

<pre><script>
    $(document).ready(function () {
       
        $("#download").click(function () {
            Swal.mixin({
                input: 'email',
                confirmButtonText: 'Next →',
                showCancelButton: true,
                //progressSteps: ['']
            }).queue([
              {                  
                  text: 'Please enter Email-Id'
              }
            ]).then((result) => {   <------------here ill get syntax error 
                if (result.value) {
                    Swal.fire({
                                title: 'All done!',
                        html:'<pre><code><a href="Home/DownloadFile?username='+result.value+'">Click here to download</a></code>
',
confirmButtonText: 'Cancel'
});
}
});

});

});
Posted
Updated 17-Mar-19 19:44pm

1 solution

 
Share this answer
 
Comments
[no name] 18-Mar-19 2:37am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900