I want to create two items in one panel. That's not a problem.
constructor TDemoform.create;
begin
Panel :=document.createElement('div');
Panel['class']:='panel panel-default';
item1 :=document.createElement('input');
item1['id']:='tekst1';
item1['type']:='text';
item2 :=document.createElement('input');
item2['id']:='tekst2';
item2['type']:='text';
document.body.appendChild(panel);;
Panel.appendChild(item1);
Panel.appendChild(item2);
When I run this code I see two text input items next to each other.
If I create two items in HTML, tag <BR> creates a new line after the first item.
Is it also possible to do this in pas2js or do I have to create a panel for each item?
I never build forms in javascript directly.