-2
$(document).ready(function(){
if($('#license_firecorp_checkbox').is(":checked") == true){
$("#id_license_firecorp").show();
}
else{
$("#id_license_firecorp").hide();
}
$("#license_firecorp_checkbox").click(function(){
if($('#license_firecorp_checkbox').is(":checked") == true){
$("#id_license_firecorp").show();
}
else{
$("#id_license_firecorp").hide();
$("#id_license_firecorp").val('');
}
})
if($('#shelf_number_checkbox').is(":checked") == true){
$("#id_shelf_number").show();
}
else{
$("#id_shelf_number").hide();
}
$("#shelf_number_checkbox").click(function(){
if($('#shelf_number_checkbox').is(":checked") == true){
$("#id_shelf_number").show();
}
else{
$("#id_shelf_number").hide();
$("#id_shelf_number").val('');
}
})
if($('#envolve_process_checkbox').is(":checked") == true){
$("#id_envolve_process").show();
}
else{
$("#id_envolve_process").hide();
}
$("#envolve_process_checkbox").click(function(){
if($('#envolve_process_checkbox').is(":checked") == true){
$("#id_envolve_process").show();
}
else{
$("#id_envolve_process").hide();
$("#id_envolve_process").val('');
}
})
if($('#register_employ_checkbox').is(":checked") == true){
$("#id_register_employ").show();
}
else{
$("#id_register_employ").hide();
}
$("#register_employ_checkbox").click(function(){
if($('#register_employ_checkbox').is(":checked") == true){
$("#id_register_employ").show();
}
else{
$("#id_register_employ").hide();
$("#id_register_employ").val('');
}
})
if($('#external_process_checkbox').is(":checked") == true){
$("#id_external_process").show();
}
else{
$("#id_external_process").hide();
}
$("#external_process_checkbox").click(function(){
if($('#external_process_checkbox').is(":checked") == true){
$("#id_external_process").show();
}
else{
$("#id_external_process").hide();
$("#id_external_process").val('');
}
})
if($('#responsability_analise_checkbox').is(":checked") == true){
$("#id_responsability_analise").show();
}
else{
$("#id_responsability_analise").hide();
}
$("#responsability_analise_checkbox").click(function(){
if($('#responsability_analise_checkbox').is(":checked") == true){
$("#id_responsability_analise").show();
}
else{
$("#id_responsability_analise").hide();
$("#id_responsability_analise").val('');
}
})
worked, mt obg guy
– Vinicius Medeiros Fogaça
Dispose! I added a little bit at the end of the answer. Abs!
– Sam
@Viniciusmedeirosfogaça when a reply helps and you decide that she decided to mark her as accepted.
– prmottajr