Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
heyy..

I am using a jquery message box in the source code .I want this to be animated and add effects to it.. Any solution ....??

here is my Message Box js :-

C#
function MessageBox(Messgae,FocusingControl) {
 $("#modal_dialog").text(Messgae);

    $("#modal_dialog").dialog({
        title: 'Eastern',
        position: 'center',
        open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); },
        closeOnEscape: false,
        buttons: {
            Close: function() {
            //$('#equipementIDN_direct').focus();
                $(this).dialog('close');
              if(FocusingControl!='')
              {
                 FocusingControl.focus();
                 }

          }

        },
        modal: true

    });


}


Above code is my message box js


I use this message box in below code -

C#
function ValidateTelephoneNumber() {

        var a = $("input[attr-identity=txtPhoneNo]").val();
        if (a.charAt(0) == "0") {
            if (a.charAt(1) == "0") {
                if (a.charAt(2) == "0") {
                    MessageBox("Given Phone number format is not correct", $("input[attr-identity=txtPhoneNo]"));
                    $("input[attr-identity=txtPhoneNo]").val('');
                }
            }
        }


    }



How we can apply effects and animations to ir??
Posted

1 solution

You can apply style externally applying style class to div #modal_dialog
 
Share this answer
 

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