> Actually, this works: > > var button = document.createElement('input'); > button.type = 'submit'; > button.value = 'The button'; > document.getElementById('test').appendChild(button);
yes, sure, it isn't a button element. button elements can take html as children, span for example which allows for some advanced styling. and they even look the same in safari... -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/