Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9252113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:51:51+00:00 2026-06-18T10:51:51+00:00

Please see this Image view that what i exactly want to do… <% for(;IteratorOfList.hasNext();)

  • 0

Please see this Image view that what i exactly want to do…

<%
for(;IteratorOfList.hasNext();)
{
String optionValue = IteratorOfList.next();
%>

<select id='1'>
<option value="Aunt">Aunt</option>
<option value="Brother">Brother</option>
<option value="Brother in law">Brother in law</option>
<option value="Cousin">Cousin</option>
<option value="Doughter">Doughter</option>
</select>
<%}%>

in this above code suppose for loop runs three times and hence we got three select boxes so my question is that how can i select options in all this three select box which i have fetched from the DATA BASE and all three values have binded in request object only just to select the three differnt values in these select….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:51:52+00:00Added an answer on June 18, 2026 at 10:51 am

    I quite did not understand your question..but tried my best..

    You want to populate a drop down list with the list of strings.

    I am using Jquery to do this.
    Once you have the array of strings in your javascript you then iterate through the array and create the <option> elements with the array values and append it to the select box.

      $.each(relationsList, function(val, text) {
          $('#relationsDropDown').append( $('<option></option>').val(val).html(text) );
      });
    

    According to the updated question.. I made the changes and here is the JSFIDDLE

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please see the image below. How was this 'pop-up' view created? Suppose I wanted
Please see this piece of code: #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i
Please see this fiddle I want the scrolling div stop following when left div
It seems that i cannot access $(this) inside jquery ajax success function. please see
Please look at the image below !! So in this image... You can see
Please view this image of the crash after I choose to debug it in
Please see this example: if (strlen($_SESSION['userDetails']['THISNAME']) == 0) { $_SESSION['userDetails'][''.$THISNAME.'Error'] = autofocus; include $docRoot/html/forms/reg/user_info.html.php;
Please see this IBM site - http://www.ibm.com/us/en/ If you see the site banners, there
Important : Please see this very much related question: Return multiple values in C++
To understand what I mean, please see this snippet: <table style=width: 100%> <tbody><tr><td> <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.