Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/01/2013, 15:10
carlosuc99
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 13 años, 5 meses
Puntos: 5
Exclamación Respuesta: Por qué no funciona esto?

Cita:
Iniciado por emprear Ver Mensaje
Como te dije , posteá el html generado completo

Saludos
Te explico, te pongo el HTML generado del DIV ya que si pongo el completo es demasiado. Ya que en el index.php también hay una tabla. Si necesitas más código pídelo:

Código HTML:
Ver original
  1. <div id="newaircraftdialog" title="New Aircraft">
  2.     <script>
  3.     $(function() {
  4.         $("#insertaircraft")
  5.             .button()
  6.             .click(function(event) {
  7.         });
  8.     });
  9.  
  10. <form action="new_aircraft_process.php" method="post" enctype="application/x-www-form-urlencoded">
  11.     <table>
  12.  
  13.     <tr><td class="forms">ICAO:</td><td><input maxlength="4" type="text" name="icao" size="30"/></td></tr>
  14.  
  15.     <tr><td class="forms">Name:</td><td><input type="text" name="name" size="30"/></td></tr>
  16.  
  17.     <tr><td class="forms">Weight Empty:</td><td><input type="text" name="weightempty" size="30"/></td></tr>
  18.  
  19.     <tr><td class="forms">Weight Full:</td><td><input type="text" name="weightfull" size="30"/></td></tr>
  20.  
  21.     <tr><td class="forms">Cargo Full:</td><td><input type="text" name="cargofull" size="30"/></td></tr>
  22.  
  23.     <tr><td class="forms">Cruise Speed:</td><td><input type="text" name="cruisespeed" size="30"/></td></tr>
  24.  
  25.     <tr><td class="forms">Range:</td><td><input type="text" name="range" size="30"/></td></tr>
  26.  
  27.     <tr><td class="forms">Price:</td><td><input type="text" name="price" size="30"/></td></tr>
  28.  
  29.     <tr><td class="forms">Number Classes:</td><td><select id="numberclasses" name="numberclasses">
  30.         <option value="0">Select Number of Classes</option>
  31.         <option value="1">One Classes (Economy)</option>option value="2">Two Classes (Business & Economy)</option><option value="3">Three Classes (First, Business & Economy)</option>    </select></td></tr>
  32.  
  33.  
  34.  
  35.    <tr><td class="forms">First Class Seats:</td><td><input disabled="disabled" type="text" id="firstclassseats" name="firstclassseats" size="30"/></td></tr>
  36.  
  37.    <tr><td class="forms">Business Class Seats:</td><td><input disabled="disabled" type="text" id="businessclassseats" name="businessclassseats" size="30"/></td></tr>
  38.  
  39.    <tr><td class="forms">Economy Class Seats:</td><td><input disabled="disabled" type="text" id="economyclassseats" name="economyclassseats" size="30"/></td></tr>
  40.  
  41. <script>
  42.  
  43. $("#numberclasses").change(function() {
  44. value = $(this).val();
  45.  
  46. str = parseInt(value);
  47.  
  48. switch(str)
  49.   {
  50.     case 0:
  51.     $(document).ready(function() {
  52.         $("#firstclassseats").attr("disabled","disabled");
  53.         $("#businessclassseats").attr("disabled","disabled");
  54.         $("#economyclassseats").attr("disabled","disabled");
  55. });
  56.     break;
  57.  
  58.     case 1:
  59.     $(document).ready(function() {
  60.         $("#economyclassseats").removeAttr('disabled');
  61.         $("#firstclassseats").attr("disabled","disabled");
  62.         $("#businessclassseats").attr("disabled","disabled");
  63. });
  64.     break;
  65.  
  66.      case 2:
  67.     $(document).ready(function() {
  68.         $("#businessclassseats").removeAttr('disabled');
  69.         $("#economyclassseats").removeAttr('disabled');
  70.         $("#firstclassseats").attr("disabled","disabled");
  71. });
  72.     break;
  73.  
  74.     case 3:
  75.     $(document).ready(function() {
  76.         $("#firstclassseats").removeAttr('disabled');
  77.         $("#businessclassseats").removeAttr('disabled');
  78.         $("#economyclassseats").removeAttr('disabled');
  79. });
  80.     break;
  81.  
  82.   }
  83. });
  84.  
  85.  
  86.     <tr><td></td><td><input id="insertaircraft" type="submit" value="Insert Aircraft"/></td></tr>
  87.     </table>
  88. </form></div>