October 22, 2024
Chicago 12, Melborne City, USA
jQuery

Is nested confirmation possible?


I’ve been using notiflix confirmation for a while now, and i’ve been trying to do a nested confirmation. But the second confirmation is not showing.

    Notiflix.Confirm.show(
        'Confirmation',
        'Use second confirmation?',
        'Yes',
        'No',
        () => {
            //When yes has been clicked
            Notiflix.Confirm.show(
             'Confirmation',
             'Is this your second confirmation?',
             'Yes',
             'No',
             () => {
              console.log('yes')
             },
             ()=>{
                 console.log('no')
             })
        },
        ()=>{
           //When no has been clicked
        })

Here’s my cdn

<script src="~/Scripts/jquery-3.3.1.min.js"></script>   
<script src="~/Scripts/notiflix-3.2.6.min.js"></script>

Is there something im missing or is nested confirmation isn’t possible to do?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video