Znalazłem na tym forum taki scrypt:
<script type="text/javascript"> function checkboxy(){
for(i=0; i < document.fm.elements.length; i++) {
obj = document.fm.elements[i];
if(obj.type == 'checkbox' && obj.checked) {
document.fm.txt.value += obj.value;
}
}
}
<input type="checkbox" name="checkbox1" value="mail1@mail.pl"><br> <input type="checkbox" name="checkbox2" value="mail2@mail.pl"><br> <input type="checkbox" name="checkbox3" value="mail3@mail.pl"><br><br> <input type="button" value="ok" onclick="checkboxy();"><br><br><br>
wiadomo, po kliknięciu w button wstawiają się wartości checkboxów do textarea, ale mnie interesuje to, czy da się te same wartości wstawić do linku w formie:
<a href="mailto:mail1@mail.pl; mail2@mail.pl; mail3@mail.pl">wyslij</a>
chodzi o wstawienie tych wartości po mailto:
Dzięki