mercredi 18 février 2015

Dear experts,in my jsp i created dynamic checkboxes from database.now i want to show and hide the text field in the same row for each checkbox

In my jsp, i created dynamic check boxes from database.now i want to show and hide the text field in the same row for each check box.tell me the possible ways.i was tried with some java script and j query but text field comes only for the first check box.


function Checkbox(){



if(document.getElementById('select').checked){


document.getElementById('test').style.display='block';
document.getElementById('test1').style.display='block';


}else{

document.getElementById('test').style.display='none';
document.getElementById('test1').style.display='none';
}


}


--%> Asset Code --%> No physical assets to display



Aucun commentaire:

Enregistrer un commentaire