Post by twetch#25395

17MgXq…wkrk Key · twetch

Help needed for $1.00.

I have a form, and the user can select "poor", "fair" or "good". However, I would like that a default value is assigned, and it is "good". If this does not suite the user they will be able to select and alter the choice.

Anyone?

1z4hdD…YHWc Key · twetch
What the chain says
Block
660 854
Time
2020-11-11T19:22:45Z
Signer
1z4hdDnjSwqkukN6VuSFjfmA9Zj29YHWc
App
twetch
Type
post
Content type
text/plain
Name in tx
twetch#25395

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 1z4hdDnjSwqkukN6VuSFjfmA9Zj29YHWc Verified

Replies (5)

1HSjHJ…sCcr Key · twetch
Replying to@1z4hdD…YHWc

How do I define that the selected option will be "good" in the above code example?

I have seen online that I can say value="good" and selected="selected" but that doesn't quite work.

Exactly how would it be written in the above example?

1CgkV3…b3on Key · twetch
Replying to@1z4hdD…YHWc

Okay I’ll give it a go.

That should fit well with the code snippet which is attached above?

Because the values which are displayed (poor, fair, & good) aren’t directly visible in the code but liked from somewhere else.

Anyway, will try it out! 👍

1z4hdD…YHWc Key · twetch
Replying to@1CgkV3…b3on

Should look something like this

Poor Fair Good
Continue thread →