Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


Santhosh Rajendran
Java Script.
0 Answer(s)      a year and 7 months ago
Posted in : JavaScript Questions


Hi Sir,

The below java script code is not working in Google chrome can yo give me the solution as soon as possible.

<script type="text/javascript">
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.textname.value=temp
}

</script>
</head>

Regards, Santhosh.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com