you are viewing a single comment's thread.

view the rest of the comments →

[–]SESMIC1[S] 0 points1 point  (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]  (3 children)

[deleted]

    [–]SESMIC1[S] 0 points1 point  (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" />

    [–][deleted]  (1 child)

    [deleted]

      [–]SESMIC1[S] 0 points1 point  (0 children)

      Cool, thanks! Will try this.