Evet ya kutu jQuery kullanarak teyit Yok | Netgez.com
SORU
19 AÄžUSTOS 2010, PERÅžEMBE


Evet ya kutu jQuery kullanarak teyit Yok

Evet/Hayır uyarıları DV yerine Tamam/İptal düğmesi: kullanarak istiyorum

jQuery.alerts.okButton = 'Yes';
jQuery.alerts.cancelButton = 'No';                  
jConfirm('Are you sure??',  '', function(r) {
    if (r == true) {                    
        //Ok button pressed...
    }  
}

BaÅŸka alternatifler?

CEVAP
25 Mayıs 2012, Cuma


$('<div></div>').appendTo('body')
    .html('<div><h6>Are you sure?</h6></div>')
    .dialog({
        modal: true,
        title: 'Delete message',
        zIndex: 10000,
        autoOpen: true,
        width: 'auto',
        resizable: false,
        buttons: {
            Yes: function () {
                // $(obj).removeAttr('onclick');                                
                // $(obj).parents('.Parent').remove();

                $(this).dialog("close");
            },
            No: function () {
                $(this).dialog("close");
            }
        },
        close: function (event, ui) {
            $(this).remove();
        }
    });

Demo :

Bunu PaylaÅŸ:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Electro Posé

    Electro PosÃ

    21 ÅžUBAT 2013
  • Joshua Bane

    Joshua Bane

    24 Temmuz 2007
  • PUSHER

    PUSHER

    11 HAZİRAN 2014