Donc j'ai résolu mon problème précédent mais maintenant j'en ai un autre qui m'apparait.
J'ai donc deux recherches qui ont lieu chacune en fonction de paramètre différents, l'un en fonction du statut d'une commande, l'autre en fonction de la date de celle-ci. Elle fonctionne parfaitement séparement mais je voudrais qu'elles fonctionnent ensembles.
Une idée me permettant de mettre en place cette recherche croisé ?
 
  Bon j'ai réussi, je met ma réponse si d'autres galère avec la structure de mon HTML le code coffee donne ça
Research = ->
  date = undefined
  i = undefined
  statut = undefined
  statut = $('select[id$=select-state] option:selected').val()
  date = $('select[id$=select-date] option:selected').val()
  if date == '' and statut == ''
    $('#allCmd .commande').show()
    return
  i = 0
  $('#allCmd .commande').show()
  $('.commande').find('.entete_commande>.content').each ->
    cmdDate = undefined
    cmdState = undefined
    commande = undefined
    result = undefined
    if date == '' and statut != ''
      console.log 'je suis dans l\'état'
      cmdState = $('.commande>.entete_commande>.content>.statut').eq(i).html()
      if statut != cmdState
        $(this).parent().parent().hide()
        return i = i + 1
      else
        return i = i + 1
    else if statut == '' and date != ''
      console.log 'je suis dans date'
      cmdDate = $('.commande>.entete_commande>.content>.date').eq(i).html()
      result = lessThen(cmdDate, date)
      if result == false
        $(this).parent().parent().hide()
        return i = i + 1
      else
        return i = i + 1
    else if statut != '' and date != ''
      console.log 'je fait la recherche sur les deux !'
      cmdState = $('.commande>.entete_commande>.content>.statut').eq(i).html()
      console.log 'je t\'affiche cmdState pour recherche a deux : ' + cmdState
      cmdDate = $('.commande>.entete_commande>.content>.date').eq(i).html()
      console.log 'je t\'affiche cmdDate pour recherche a deux : ' + cmdDate
      result = lessThen(cmdDate, date)
      if result != false and statut == cmdState
        return i = i + 1
      else
        $(this).parent().parent().hide()
        return i = i + 1
    return
  return 
  Bon toujours personne pour mes prbs ^^
Donc j'ai commencé à faire une fonction mais je tombe sur un os sur ma page j'ai pusieurs ('#commande') pour ma recherche je fais donc un each sur chaque mais mon soucis est que j'ai besoin de recup deux div dans ces commandes et je n'y arrive pas
voila la structure de mon html
<div class="commande">
    <div class="entete_commande" id="info-cmd">
        <div class="content">
            <div>
            {{ $command->CO_Number_Commande }}
            @if ($command->CO_Tag != "")
                / {{$command->CO_Tag}}
            @endif
            </div>
            <div>{{ $command->CO_Amount_Untaxed + $command->CO_Amount_Tax}} $</div>
            <div>{{GetStatutString($command->CO_Statut)}}</div>
            <div>{{$command->CO_Date}}</div>
        </div>
        <div class="plus">
            <i class="fa fa-plus-square fa-lg"></i>
        </div>
    </div>
    <div class="empty-commande">
    </div>
    <div class="info-commande">
    <div class="adresse">
        <p class="entete">{{ Lang::get('command.deliveryAdress') }}</p>
        <p>{{$command->CO_Livraison_Adresse}}</p>
        </br>
        <p class="entete">{{ Lang::get('command.billingAdress') }}</p>
        <p>{{$command->CO_Facturation_Adresse}}</p>
    </div>
        <table>
            <thead>
                <th>{{ Lang::get('command.description') }}</th>
                <th>{{ Lang::get('command.quantity') }}</th>
                <th>{{ Lang::get('command.unitPrice') }}</th>
                <th>{{ Lang::get('command.discount') }}</th>
                <th>{{ Lang::get('command.subtotal') }}</th>
                <th>{{ Lang::get('command.metal') }}</th>
                <th>{{ Lang::get('command.wood1') }}</th>
                <th>{{ Lang::get('command.wood2') }}</th>
                <th>{{ Lang::get('command.tissue') }}</th>
                <th>{{ Lang::get('command.glass') }}</th>
                <th>{{ Lang::get('command.handle') }}</th>
                <th>{{ Lang::get('command.leg') }}</th>
                <th>{{ Lang::get('command.config') }}</th>
                <th>{{ Lang::get('command.statut') }}</th>
            </thead>
            <tbody>
                @foreach($commands_line as $line)
                    @if ($line->CL_Commande_Ref === $command->CO_Number_Commande )
                        <tr>
                            <td>{{$line->CL_Product_Name}}</td>
                            <td>{{$line->CL_Quantite}}</td>
                            <td>{{$line->CL_Prix_Unitaire}}</td>
                            <td>{{$line->CL_Remise}}</td>
                            <td>
                            <?php $sousTot = $line->CL_Prix_Unitaire * $line->CL_Quantite;
                            echo $sousTot
                            ?>
                            </td>
                            <td>{{$line->CL_Metal}}</td>
                            <td>{{$line->CL_Bois1}}</td>
                            <td>{{$line->CL_Bois2}}</td>
                            <td>{{$line->CL_Tissu}}</td>
                            <td>{{$line->CL_Verre}}</td>
                            <td>{{$line->CL_Poignee}}</td>
                            <td>{{$line->CL_Patte}}</td>
                            <td>{{$line->CL_Config}}</td>
                            <td>{{GetStatutString($line->CL_Statut)}}</td>
                            <td></td>
                        </tr>
                    @endif
                @endforeach
            </tbody>
        </table>
    </div>
</div>
@endforeachCeci est la structure de mon html j'ai donc plusieurs commandes ici il n'y en a qu'une mais un for each itère dessus pour les mettre
pour mon selecteur du each j'utilise -> ```$('.commande').find('.entete_commande>.content').each -> ````
Le problème est que je dois ensuite recup la date ainsi que le statut et je n'arrive pas à les récuperer ou tout du moins je ne trouve pas la fonction qui me permettrait de recup le contenu de chaque
par exemple dans mon each si je fais un
commande = $(this).html()je recup tout le contenu html mais comment je fais ensuite pour en recup un élément précis dans ce HTML ??
Une ame bienveillante serait la bienvenue =)
 
  je vais partir sur l'utilisation de ça avec un index que j'incrémenterai ^^
$('.commande>.entete_commande>.content>#statut')[0]ainsi a partir de ça j'obtiens -> <div id="statut"> Statut Commande</div>
maintenant il me faut juste le contenu de cette div -_- comment je peux faire car .html() ne fonctionne pas dessu