Jack Marquies Jack Marquies - 2 months ago 5
PHP Question

How can i make a alert dialog jquery

I want to use option screen . When someone click my label,i want to open a small screen like Alert . And i want to change my Styles label from this alert. But i cant find example from alert builder.

$(document).on('click', '#MyLabel', function() {




This a fundamentally simple task in jQuery UI. See jsfiddle

    autoOpen  : false,
    modal     : true,
    title     : "A Dialog Box",
    buttons   : {
              'OK' : function() {
                  var textValue = $('#myTextBox').val();
                  alert('The value of the text box is ' + textValue);
                  //Now you have the value of the textbox, you can do something with it, maybe an AJAX call to your server!
              'Close' : function() {
                  alert('The Close button was clicked');