PDA

View Full Version : aligning html element to button in dialog footer



rahulmca1@gmail.com
13 Jul 2007, 12:32 AM
Hi,

We can add button to basic dialog by using add button. Markup is inserted in the dialog footer in the form of anchor tags(used firebug to see content).


dialog.addButton('Close', dialog.hide, dialog);

How to add any html element say checkbox in the same row in which above added dialog button lies.

I want my checkbox and button to be horizentally alligned.


Thanks
regards

tryanDLS
13 Jul 2007, 8:25 AM
Look at how the dialog adds the button to footer property. Once the footer is there, you should be able to add additional elements to it via the normal methods (e.g insertAfter, appendChild, etc).