Good, I have a problem, I can not find the way in which to refresh the page the input text are disabled, they are enabled and disabled with a checkbox, the checkbox if I return from the bd with the value already marked, what I want you to be able to verify if the checkbox is checked, then the input text will be disabled.
String checkbox1 ="";
COMANDO=select v1 from bd;
rset = stmt.executeQuery(COMANDO);
if(rset.next()){
checkbox1=rset.getString("v1");if(v1==null)v1="";
}
//Retornar valor desde la bd
$("input[id=checkbox1[value='<%=checkbox1%>']").prop("checked",true);
$('#checkbox1').click(function() { // Si esta seleccionado (si la propiedad checked es igual a true)
if ($(this).is(':checked')) { $("#text").attr('disabled','disabled'); } else { $("#text").removeAttr('disabled');
}
});
<tr>
<td colspan="3">Ubicación de placa cauterio:</td>
<td colspan="6"><input type="text" size="20" id="text" name="text" value="<%=text%>" class="11" ></td>
<td ><input type="checkbox" id="checkbox1" name="checkbox1" value="3" class="checkiop" ></td>
</tr>