I want to implement "batch actions" over the selected table rows. I added
checkbox to each table row:
<td><input type="checkbox" id="rowCheckBox" value="${instance.id}"/></td>
Then I used the below script to send ALL the selected ids to an action in
the controller:
var markCompleted = function () {
var ids = new Array()
jQuery("input:checkbox:checked").each(function(){
ids.push(this.value)
})
jQuery('#lastMessagesBox').load('/rqr/field/gaMarkCompleted', {ids:
ids});
}
It is working using jquery 1.3.2, grails 1.2 final, firefox 3.5, windows xp
--
View this message in context: http://old.nabble.com/get-value-of-checked-checkboxes-into-a-list-tp14750244s27240p26952298.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
No comments:
Post a Comment