A voir également:
- Manipuler chaine de caractère en javascript
- Caractère spéciaux - Guide
- Excel extraire chaine de caractère après un caractère ✓ - Forum Excel
- Caractère invisible ✓ - Forum Windows
- Caractère spéciaux mac clavier - Guide
- Caractère ascii - Guide
1 réponse
Je pense qu'avec quelque chose comme ca, ca pourrait marcher :
<html>
<head>
<script>
function verif(){
var inputs=document.getElementById("laOuSeTrouventLesCheckbox").getElementsByTagName("input");
var str="";
for(var indx in inputs){
if(inputs[indx].type=="checkbox"){
if(!inputs[indx].checked){
str+=inputs[indx].value+";";
}
}
}
alert(str);
}
</script>
</head>
<body>
<table id="laOuSeTrouventLesCheckbox">
<tbody>
<script>
var liste=new Array(1,23,45);
var str="";
for(var i in liste){
str+="<tr>";
str+=" <td>";
str+=" <input type='checkbox' value='"+liste[i]+"' onClick='verif()'>";
str+=" </td>";
str+=" <td>";
str+=" "+liste[i];
str+=" </td>";
str+="</tr>";
}
document.write(str);
</script>
</tbody>
</html>
</body>
</html>