Friday, January 30, 2009

[jQuery] Having a problem with checkboxes

Hi,

I am using this:

<input type="checkbox" name="paradigm" value="{$value.ver_id}" />


$(document).ready(function(){
$("#paradigm_all").click(function(){
var checked_status=this.checked;$("input[@name=paradigm]").each
(function(){
this.checked=checked_status;
});
});
});

to check and uncheck a list of articles.
Now I want to sumbit the checked articles, but I don't know how to do
that.

I can't use <input type="checkbox" name="paradigm[]"
value="{$value.ver_id}" />
as then the jquery doesn#t work anymore.

But how can I transfer all checked Id's to the next page?
Any help?

Thanks a bunch!

No comments: