Edit text and addClass at Dialog Button
Hi guys, I've another question for you ...
I've create a function for open a dialog like this
- function dialogOpen(div, width, height, text){
- $(div).dialog({
- autoOpen: false,
- width: width,
- height: height,
- modal: false,
- buttons: {text:function(){ }},
- close: function() {$(div).remove();}
- });
- $(div).dialog( "open" );
- }
- $(document).on('click', '.openDialog', function()dialogOpen('divClient', 'auto', 'auto', 'New');});
I would like to Know :
- Why the text of dialog-button is 'text' and no 'New'? How can I do it?
- How can I addClass('newClient') at the same button?
Thanks so much
Bye