/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] pre-inserted <input> are displayed differently from appended <input>

Hi,

As you can see in my attachment, the first two text fields and “add” button are spaced well.

I wrote down a javascript so that when I click add button, it will create a same set of input fields below it. I used appendChild method to pull this off. However, as you can see, the input fields are right next to each other unlike the pre-inserted input fields. Is there a way that I can have appended input fields look like the preinserted ones?

[upl-file uuid=7b807493-076c-4f75-8b84-62a089fce9c2 size=15kB]add.JPG[/upl-file]

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @rubenhan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...