You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
573 B
JavaScript
24 lines
573 B
JavaScript
6 years ago
|
function selectcmp(o){
|
||
|
j=0;
|
||
|
for (i=0;i<document.form1.ccheckbox.length;i++){
|
||
|
if (document.form1.ccheckbox[i].checked){j++}
|
||
|
}
|
||
|
$(function(){$(".select-count").html(j)})
|
||
|
if (j>=4) {o.checked = false;alert('up to 3');}
|
||
|
}
|
||
|
|
||
|
function gocmp()
|
||
|
{
|
||
|
var vv = "";
|
||
|
var j = 0;
|
||
|
for (i=0;i<document.form1.ccheckbox.length;i++){
|
||
|
if (document.form1.ccheckbox[i].checked){
|
||
|
j++;
|
||
|
vv += document.form1.ccheckbox[i].value+",";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
if(j<2) {alert('err:less than 2');return;}
|
||
|
location.href='/tour/tour-comparison.asp?delete_name='+vv;
|
||
|
//alert(vv);
|
||
|
}
|