how to change the dialog text size in jquery

user1324068 picture user1324068 · May 31, 2012 · Viewed 15.4k times · Source

Hi I want to change the dialog text size.Dynamically I created th dialog, I need to change the text size.How to do this? Kindly guide me.

function validate_email(){
                window.$required = $("#dialog").dialog({
                  width: 300,
                  height: 450,

                    autoOpen: false,
                           buttons: {
                'Complete': function() {
                   checkstatus(userid);
                }
              }
                });
            $required.html('Your account setup has been initiated. 
started.').dialog('open');//here my text
            }

Answer

papaiatis picture papaiatis · May 31, 2012

You can use .css() to modify the style of your dialog:

function validate_email(){
     window.$required = $("#dialog").dialog({
         width: 300,
         height: 450,
         autoOpen: false,
         buttons: {
            'Complete': function() {
               checkstatus(userid);
            }
          }
     }).css("font-size", "20px");

     $required.html('Your account setup has been initiated. started.').dialog('open');//here my text
}