Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/10/2016, 06:03
Avatar de skywolker
skywolker
 
Fecha de Ingreso: julio-2011
Ubicación: España
Mensajes: 195
Antigüedad: 12 años, 9 meses
Puntos: 8
Respuesta: Cómo modificar TODOS los TAGS "input" de un archivo HTML ???

Código HTML:
$(function(){
  $("#select_all").click ( function(){
   $("#frm1 input[type='text'].child").attr ( "" , $(this).attr("" ) );
  });
});

<form id="frm1">
    <table>
        <tr>
            <td>
                <input type="text" id="select_all" />
            </td>
        </tr>
        <tr>
            <td>
                <input type="text" name="select[]" class="child" />
            </td>
        </tr>
        <tr>
            <td>
                <input type="text" name="select[]" class="child" />
            </td>
        </tr>
        <tr>
            <td>
                <input type="text" name="select[]" class="child" />
            </td>
        </tr>
    </table>
    </form>