- 3 Posts
- 4 Comments
Joined 11 months ago
Cake day: February 1st, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
animewatcher@lemmy.worldOPto
Perchance - Create a Random Text Generator@lemmy.world•[Help] Trying to use lists (dict with (Key=value) pair) as select options set for HTML editorEnglish
1·11 months agoThanks for the help @VioneT@lemmy.world !!!
animewatcher@lemmy.worldOPto
Perchance - Create a Random Text Generator@lemmy.world•[Help] Trying to use lists (dict with (Key=value) pair) as select options set for HTML editorEnglish
1·11 months agoSure , thanks for your help . I will try this and let you know the results.
I tried this way , please let me know your thoughts.
--------------------------------------------In List editor -------------------------------
List o1 = option 1 o2 = option 2 $output = [this.getPropertyKeys.map(a => `<option value="${this[a]}">${a}</option>`).join('')]--------------------------------------------In HTML editor -------------------------------
<select id="selectEl" onclick = "update(out)">[List]</select> <p id ="out">[selectEl.value]</p>Please correct me if I made mistakes, i tried this method because It can be dynamic and much friendly
And second thing is ,it might be dumb but, how do I tell the ai helper to edit the content in list editor instead of html editor. Is it even possible??
animewatcher@lemmy.worldOPto
Perchance - Create a Random Text Generator@lemmy.world•[Help] Trying to use lists (dict with (Key=value) pair) as select options set for HTML editorEnglish
0·11 months agoSure , I just formatted the question, please read it again, thanks in advance for helping
Thanks for the reply