jQuery:
(...)
$('#button_submit').click(function()
{
func(check_box_values)
});
html:
<form id="myForm">
<label class="checkbox">
<input type="checkbox" name="my_opt[]" value="1">opt1</label>
<label class="checkbox">
<input type="checkbox" name="my_opt[]" value="2">opt2</label>
<label class="checkbox">
<input type="checkbox" name="my_opt[]" value="3">opt3</label>
<input id='my_opt' type='hidden' name='my_opt[]' />
<input type="button" id="button_submit" value="go">
</form>
我怎样才能将这个选中的复选框值传递到那里以使用func(check_box_values)
?