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 8650463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:49:44+00:00 2026-06-12T13:49:44+00:00

How do I select the second option in this dropdown? <select name=size onchange=…js…> <option

  • 0

How do I select the second option in this dropdown?

<select name="size" onchange="...js...">
  <option value="OPTION_CHOOSE">Please Select an Option</option>                            
  <option value="123">ABC</option>
  <option value="456">DFG</option>
  <option value="789">HIJ</option>
</select>

ruby

require 'rubygems'
require 'mechanize'

url = "http://...."
agent = Mechanize.new
page = agent.get(url)

form = agent.page.forms.first

*select drop down*
  • 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-12T13:49:46+00:00Added an answer on June 12, 2026 at 1:49 pm
    form.field_with(:name => 'size').options[1].click
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First Select <Select id=drop1 onchange=drop1(this.value)> <option value ='1'>1</option <option value ='2'>2</option <option value ='3'>3</option
I have a situation where the second select list option is generated from the
First option: SELECT Table1.* ,Table2.Price AS Price FROM Table1,Table2 WHERE Table1.ID = Table2.ID Second
I inserted 'vanity_name' and 'name' into the first and second SELECT statements respectively. I
I populate child dropdown (second dropdown) by the onchange event in parent dropdown (first
I have two dropdown lists, the second should only be displayed when the value
I have a multiple field like this: <select name=excluded_groups[]> <?php echo $foo->multi_group_select_options($group_ids, $excluded_id); ?>
I'm doing this: $sql_glassware = 'SELECT id, name FROM glassware'; $qry_glassware = $con->query($sql_glassware); $get_glassware
I have different select boxes. I want to select second one with related id.
I want to select the second <p> tag and style it within a itemize

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.