I need to show the user the ability to customize a budget, but I'm not able to show the options, it works only the first one, I'm using this code within a while php.
What I have is this:
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form>
<table width="100%" border="0">
<tr>
<td>Equipamento Analitico E.T.A</td>
</tr>
</table>
<input type="checkbox" name="opcao" value="1" class="personalizar">
Sim
<div class="orcamento" style="display: none;">
<table width="100%" border="0">
<tr>
<td> </td>
<td><input name="Sistema Supervisório" type="checkbox" value="Sistema Supervisório" />
Sistema Supervisorio</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Analisador de PH" type="checkbox" value="Analisador de PH" />
Analisador de PH </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Monitor de Coagulante" type="checkbox" value="Monitor de Coagulante" />
Monitor de Coagulante </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Turbidímetro de Entrada" type="checkbox" value="Turbidímetro de Entrada" />
Turbidímetro de Entrada</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Leitura de Vazao Via IHM" type="checkbox" value="Leitura de Vazao Via IHM" />
Leitura de Vazao Via IHM </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Analisador de Cloro" type="checkbox" value="Analisador de Cloro" />
Analisador de Cloro </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Analisador de Fluor" type="checkbox" value="Analisador de Fluor" />
Analisador de Fluor </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="checkbox" name="doseeta" value="1" class="dosadoras">
Bombas Dosadoras</td>
<td> </td>
</tr>
</table>
</div>
<div class="dose" style="display: none;">
<table width="100%" border="0">
<tr>
<td> </td>
<td><input name="Cloro" type="checkbox" value="Cloro" />
Cloro</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Fluor" type="checkbox" value="Fluor" />
Fluor </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Coagulante" type="checkbox" value="Coagulante" />
Coagulante </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Acidulante (Acido)" type="checkbox" value="Acidulante (Acido)" />
Acidulante (Acido)</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Alcalinizante (Soda)" type="checkbox" value="Alcalinizante (Soda)" />
Alcalinizante (Soda)</td>
<td> </td>
</tr>
</table>
</div>
</form>
</body>
</html>
$(document).ready(function(){
$(".personalizar").click(function(evento){
if ($(".personalizar").attr("checked")){
$(".orcamento").css("display", "block");
}else{
$(".orcamento").css("display", "none");
}
});
});
$(document).ready(function(){
$(".dosadoras").click(function(evento){
if ($(".dosadoras").attr("checked")){
$(".dose").css("display", "block");
}else{
$(".dose").css("display", "none");
}
});
});'
How can I show options?