Select an option in select tag by value(amrelgarhytech.blogspot.com)

submitted by amrelgarhyamrelgarhy(825) 3 years, 8 months ago

<SELECT name="fruit"> <OPTION value="apple">apple</option> <OPTION value="orange">orange</option> <OPTION value="pear">pear</option> </SELECT> If you need to select an option in a select tag by index you can do the following: document.getElementById('dropDown').selectedIndex = 1; But if you want to select an option in a select tag by value you can do the following:

add a comment |category: |Views: 9

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story