
Hi sir,
If i onclick the checkbox values should be displayed in text box, the following code is working properly in Internet Explorer browser but its not working in Google chrome browser give me the solution as soon as possible
function setValue(){
var val="";
var frm = document.getElementById("SearchCandForm");
var cbs = document.getElementById("SearchCandForm").checkboxname;
for(var n=0;n<cbs.length;n++){
if(cbs[n].checked){
val+=cbs[n].value+",";
}
}
var temp = val.split(",");
temp.pop();
frm.to.value=temp
};
Regards,
Santhosh.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
