aqui esta el codigo disculpen
Código PHP:
Ver original<th><select name="producto" id="producto" maxlength="10" onchange="document.getElementById('precio').value=this.options[this.selectedIndex].getAttribute('producto'); actualizar_importe()" required="required"> <option value="">-- ELIJE PRODUCTO --</option>
<?php
$row[]=array($r['cod_producto'],$r['producto'],$r['precio']); }
foreach($row as $v){ ?>
<option producto="<?php echo $v[2] ?>" value="<?php echo $v[0] ?>"><?php echo $v[1] ?></option>
<?php }?>
</select></th>
<th><input type="text" name="precio" id="precio" value="<?php echo $row[2][2]."\n" ?>" onchange="actualizar_importe()" readonly="readonly"/></th>