Repr�sentation html d'un element
Bonjour � tous !
J'ai cr�� un element :
Code:
1 2 3 4 5
|
elem = document.createElement('select');
elem.id = ....
elem.appendChild(option);
... |
Je peux l'ajouter sans probl�me � un element existant :
Code:
parent.appendChild(elem);
Mais j'aimerais en fait r�cup�rer la repr�sentation textuelle html de cet �l�ment du genre :
Ce qui me donnerai :
Code:
<select id='...'><option.....</select>
Il y a-t-il une m�thode built-in qui fait �a, et ceci, bien entendu, cross-browser, cross-plateform, cross-univers ?