Well the question might seem stupid but I really can’t figure it out. How can you add dynamically a html heading tag to your page using the google web toolkit.
I don’t want to do this for the style of the heading as I could add any style to any label, it is because I want to use the jqueryui accordion it works with a pair of header and content panel.
How can I do this?
Yes this is kinda complicated to say the least…. Here is the easiast example I can think of:
If you look at the other methods of the
Document.get()....you will find methods for creating all other HTML elements too.Addition:
This might be even easier: