<script>
function getElementsByTagNameLike(tag, nameLike){
var e = document.getElementsByTagName(tag);
for (i=0;i<e.length;i++) {
if (e[i].name.indexOf(nameLike)==0) e[i].checked=true;
}
}
</script>
<a href="#" onClick="getElementsByTagNameLike('input', 'special'); return false">Select Group</a>
<br /><br />
<input type=checkbox name="special">1
<input type=checkbox name="special1">2
<input type=checkbox name="special2">3
<input type=checkbox name="other11">4
<input type=checkbox name="special12">5
<input type=checkbox name="special">6
|