title: Don't know how to make this with jquery
body: <p>Hey I have a little issue with jQuery
  <br>I want to have information from the select
  <br> I don't know how i can do this in jQuery so i did a other thing but the teacher said me to change this</p>
  
  <pre><code>&lt;select class="submit-status"
                              onchange="changeStatusAdmin(jQuery(this))" 
                              name="statusOption" id="status-option"&gt;
                          &lt;?php
                          //Liste deroulante pour les statuts
                          foreach($allStatus as $status){
                              $statusName = utf8_encode($status-&gt;getStatus());
                              if($status-&gt;getId() 
                                      == $suggestion-&gt;getStatusId()){
                                  $statusSelected = "selected = selected";
                              } 
                              else{
                                  $statusSelected = '';
                              }?&gt;
                              &lt;option value="&lt;?php echo $status-&gt;getId();?&gt;"
                                  &lt;?php echo $statusSelected; ?&gt;&gt;
                                  &lt;?php echo $statusName; ?&gt;
                              &lt;/option&gt;
                          &lt;?php } ?&gt;
                      &lt;/select&gt;
  </code></pre>
  
  <p>I want to get the variable $statusName in jQuery but i can't change the value 
  <br> And here is my jQuery code</p>
  
  <pre><code>var status = item.parents(".idea-meta").find(".submit-status").val()
  if(status == 2){
                  status = "En attente";
              }
              if(status == 3){
                  status = "Refusée";
              }
              if(status == 4){
                  status = "Débutée";
              }
              if(status == 5){
                  status = "Planifiée";
              }
              if(status == 6){
                  status = "Terminée";
              }
  </code></pre>
  
  <p>Sry for my bad english and thanks in advance</p>