i've not tested the code so sorry if i've fumbled this, but something
like...

var a = [];
$('input.emailAddress').each(function(i){
     a.push( $(this).val() );
});

should build an array of addresses you can a.join(", ")

On Mar 5, 12:46 pm, Sir Rawlins <robert.rawl...@thinkbluemedia.co.uk>
wrote:
> Hello Guys,
>
> I have a 'mailto' link the emails of which I want to be dynamic based
> on a bunch of checkboxes. So lets say my markup looks like this:
>
> <input type="checkbox" name="UserEmails"
> value="some...@something.org" />
> <input type="checkbox" name="UserEmails" value="some...@another.com" /
>
> <input type="checkbox" name="UserEmails" value="some...@this.co.uk" />
> <input type="checkbox" name="UserEmails" value="some...@blah.net" />
>
> <a href="mailto:";>Email These Users</a>
>
> I want to be able to tick the users I want to email and then click the
> link.
>
> How would I populate the mailto link with the values of the
> checkboxes? am I best doing this with an Click() function on the
> checkbox, or on a click() for the link perhaps?
>
> I'd appreciate your thoughts on this guys,
>
> Rob

Reply via email to