# Sending the selected option of a select via ajax

**URL:** <https://www.ruby-forum.com/t/sending-the-selected-option-of-a-select-via-ajax/93159>\
**Category:** Rails\
**Created:** [April 28, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/sending-the-selected-option-of-a-select-via-ajax/93159 "2007-04-28T14:35:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Post date:** [April 28, 2007, 2:35pm UTC](https://www.ruby-forum.com/t/sending-the-selected-option-of-a-select-via-ajax/93159/1 "2007-04-28T14:35:13Z")

</div>

Hi,

i want to create a form which contains 3 select-boxes which content  
depend on each other.  
i created the first select box:

\<% for project in @projects %\>  
  
\<%=project.name-%\>  
  
\<% end %\>

the :id =\> ??? should be replaced with the id of the project in the  
selected option-tag, but… how?

greetings,

Pascal
