Sweetalert: تنفيذ مطالبات كلمة المرور

تم إنشاؤها على ١٩ مارس ٢٠١٥  ·  5تعليقات  ·  مصدر: t4t5/sweetalert

متابعة # 5

التعليق الأكثر فائدة

هذا مغلق بإصدار 0.5.0 ، قم بتغيير نوع الإدخال:

  $('button.delete-account').click(function(e) {
    swal({
      title: "Are you sure you want to delete your account?", 
      text: "If you are sure, type in your password:", 
      type: "input",
      inputType: "password",
      showCancelButton: true,
      closeOnConfirm: false
    }, function(typedPassword) {
      console.log(typedPassword);
    });
  });

ال 5 كومينتر

هذا مغلق بإصدار 0.5.0 ، قم بتغيير نوع الإدخال:

  $('button.delete-account').click(function(e) {
    swal({
      title: "Are you sure you want to delete your account?", 
      text: "If you are sure, type in your password:", 
      type: "input",
      inputType: "password",
      showCancelButton: true,
      closeOnConfirm: false
    }, function(typedPassword) {
      console.log(typedPassword);
    });
  });

كما قال parterburn ، ما inputType ويجب أن تكون على ما يرام! أيضًا ، لا تتردد في الاطلاع على البرنامج التعليمي SweetAlert إذا كنت غير متأكد من كيفية استخدام ميزات الإدخال.

شكرا على المؤشرات ، وآسف على الضوضاء :)

إنه حل عملي! شكرا :)

انها تعمل 👍

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات