What is wrong with the following, the bad result is the new input
elements are not contained by the new div element:

Javascript:
var div1 = div.insert(new Element('div', { 'class': 'new-section' }));
div1.insert(new Element('input', { 'name': 'newsection-name-' + count,
'class': 'newsection-name item-' + count }));
div1.insert(new Element('input', { 'name': 'newsection-val-' +
count }));


Output - FF:
<div class="new-section"></div><input name="newsection-name-0"
class="newsection-name item-0"><input name="newsection-val-0">

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to