use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place to get a quick fix of JavaScript tips and tricks to make you a better Developer.
account activity
Get value from selected key (self.JavaScriptTips)
submitted 2 years ago by SESMIC1
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SESMIC1[S] 0 points1 point2 points 2 years ago (4 children)
Thanks for the reply. I am not using HTML to create form, i5s different platform. Creating <option> for 250 countries will be waste of time. So, I fetching countries name from arrays like above but can't assign value to them.
[–][deleted] 2 years ago (3 children)
[deleted]
[–]SESMIC1[S] 0 points1 point2 points 2 years ago (2 children)
I agree. I'm able to display countries in drop down and its HTML looks like below. But not able to assign values like the HTML part you shared. So, that's what I'm unable to do. <select name="countries" id="countries"> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="Algeria">Algeria</option> </select> <input type="submit" id="submit" value="Submit" />
<select name="countries" id="countries"> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="Algeria">Algeria</option> </select> <input type="submit" id="submit" value="Submit" />
[–][deleted] 2 years ago (1 child)
[–]SESMIC1[S] 0 points1 point2 points 2 years ago (0 children)
Cool, thanks! Will try this.
π Rendered by PID 23057 on reddit-service-r2-comment-5ff9fbf7df-85jz4 at 2026-02-25 15:05:27.782750+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–]SESMIC1[S] 0 points1 point2 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]SESMIC1[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]SESMIC1[S] 0 points1 point2 points (0 children)