Lynnv: Variable in Javascript übergeben bei dynamischen Inputfeldern

Beitrag lesen

Hallo Rolf,

das output ist pro fieldset nur 1 mal drin:

                               <div style="width:100px;float:left">           
                                   1x<br> Fingerlinge
                                   <input style="max-width:70px; max-height:12px" min="0" type='number' name='B8[]' value='<?php echo $data2['B8']?>'/>
                                   <input style="max-width:70px; max-height:12px" min="0" class="form-control preisss" name='B8P[]' value='<?php echo $data2['B8P']?>'/>             
                               </div>
                               <div style="width:100px;float:left">
                                   1x<br> Sch&uuml;rze      
                                    <input style="max-width:70px; max-height:12px" min="0" type='number' name='B9[]' value='<?php echo $data2['B9']?>'/>
                                    <input style="max-width:70px; max-height:12px" min="0" class="form-control preisss" name='B9P[]' value='<?php echo $data2['B9P']?>'/>              
                               </div>
                               <div style="width:150px;float:left">
                                   Notizen        
                                    <textarea style="min-height:0px" cols="50" rows="2" name='Notizen[]'><?php echo $data2['Notizen']?></textarea>            
                               </div>
                               <div style="width:650px;float:left">       
                                   Preise
                                   <output class="preise"></output> 
                                </fieldset>
                      </div>
                  </div>
              </div>
          </div>
      </div>                                       
                  <?php               $indexi++;
          }  
    }
              if ($_SESSION['pruef'] == 0 )
              {
                 echo '                                      
                <input type="submit" name="Absenden" value="Absenden">';                   
              }
              if ($_SESSION['pruef'] == 1 )
              {
                  echo '                                         
                  <input type="submit" name="Speichern" value="Speichern">';
              } 
              echo ' </form>  '; 
?>

Ich habe Deinen Rat mit Stylesheet befolgt, aber nun ist der Effekt umgekehrt: Der 2. Patient ist nun rot, obwohl er kleiner als 60 ist.

LG

Lynn