Select to view content in your preferred language

open dialog to show message link popup

601
1
08-21-2013 04:58 PM
LucasYuim
New Contributor
Somebody now how to set the with of a dialog box to open when some buttom are select in a web site that have the click function?

My Javascript code is this:

 $(".message").click(
      
  function(){

   $("#message_box").dialog("open");

  }
 
 );



 $("#message_box").dialog({

  
  buttons: {

   "Close": function() { 

    $(this).dialog("close"); 

   } 

  }

 });    

0 Kudos
1 Reply
JasonZou
Frequent Contributor
This is more like a jQuery question. Anyway, try this.
$(".message").click(function() {
        $("#message_box").dialog("option", "width", 500);
 $("#message_box").dialog("open");
});
0 Kudos