title: set input type text value by class in one line
body: <p>I do a class selection by class name in radio buttons and it works
  Then I want to do a class selection by name in text imputs and set values to any text
  I could not do it</p>
  
  <p>How can I do the same setting value to my text boxes</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;html&gt; 
  &lt;head&gt; 
      &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /&gt;
      &lt;title&gt;Encuesta&lt;/title&gt;
      &lt;link href="css/smoothness/jquery-ui-1.9.1.custom.css" rel="stylesheet"&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/main.css" /&gt;
      &lt;link href="css/helper.css" media="screen" rel="stylesheet" type="text/css" /&gt;
      &lt;script src="js/jquery-1.8.2.js"&gt;&lt;/script&gt;
      &lt;script src="js/jquery-ui-1.9.1.custom.js"&gt;&lt;/script&gt;
  
      &lt;title&gt;Ejemplo Radio Button&lt;/title&gt; 
  &lt;script&gt; 
          $(document).ready(function(){   
              var predeterminar=2;
              //This line works fine
              $("[class=radiomarcado]").filter("[value='"+predeterminar+"']").prop("checked",true);
              //$("[class=nsnr]").prop("value","NS/NR");
              //$("#p074, #p076, #p078").prop("value", "NS/NR");
              // but this does not set the value by class
              // if you can see I try other ways to do
              $('.input[type="text"][class="nsnr"]').prop("value", "NS/NR");      
              //$('input:radio[class="nsnr"]').prop("value","NS/NR");
  
          });
  &lt;/script&gt; 
  &lt;/head&gt;
  
  &lt;body&gt; 
  &lt;form name=fcolores&gt; 
              &lt;table class="gridtable2"&gt;
              &lt;caption&gt;3.5 ¿Cuál es la cantidad promedio de empleados en el año 2011 que al interior de su empresa se dedicaron a las siguientes actividades?&lt;/caption&gt;
                  &lt;tr&gt;&lt;td class="subtitulos"&gt;Informática y sistemas&lt;/td&gt;
                      &lt;td&gt;    &lt;input type="text"   id="p074" name="p074" size="15" onkeypress="return RangoNumeroFormateado(this,0,0,event);" /&gt;&lt;/td&gt;
                      &lt;td&gt;Si  &lt;input type="radio" class="radiomarcado" id="p075" name="p075" value="1"/&gt;  No&lt;input type="radio" class="radiomarcado" id="p075" name="p075" value="2" /&gt;&lt;/td&gt;&lt;/tr&gt;
                  &lt;tr&gt;&lt;td class="subtitulos"&gt;Investigación y desarrollo&lt;/td&gt;
                      &lt;td&gt;    &lt;input type="text"  id="p076" name="p076" size="15" onkeypress="return RangoNumeroFormateado(this,0,0,event);" /&gt;&lt;/td&gt;
                      &lt;td&gt;Si  &lt;input type="radio"  class="radiomarcado" id="p077" name="p077" value="1"/&gt; No&lt;input type="radio"  class="radiomarcado" id="p077" name="p077" value="2" /&gt;&lt;/td&gt;&lt;/tr&gt;
                  &lt;tr&gt;&lt;td class="subtitulos"&gt;Ingeniería y diseño industrial&lt;/td&gt;
                      &lt;td&gt;    &lt;input type="text"  id="p078" name="p078" size="15" onkeypress="return RangoNumeroFormateado(this,0,0,event);" /&gt;&lt;/td&gt;
                      &lt;td&gt;Si  &lt;input type="radio"  class="radiomarcado" id="p079" name="p079" value="1"/&gt; No&lt;input type="radio"  class="radiomarcado" id="p079" name="p079" value="2" /&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;/table&gt;
  &lt;/form&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;     
  </code></pre>