Monday, 19 August 2013

How to submit selected checkbox items?

How to submit selected checkbox items?

pI have a list of items that need to be selected and take an action based
on user's request. User selects the items and click on one of the btns to
do something on the items. /p pMy code is as following but I am not sure
how to complete it. I believe, need to put them in a form to be submitted
or pass the but not sure how to have a form with two submit btns, (if I
need to have )./p precode lt;bodygt; lt;pgt;lt;bgt;Shopping
cartlt;/bgt;lt;/pgt; lt;tablegt; lt;tbodygt; lt;c:forEach
items=${cart.items} var=itemgt; lt;trgt; lt;tdgt; lt;input type=checkbox
name=Items value=${item.ID}/gt; lt;/tdgt; lt;tdgt; Name : ${item.name}
lt;/tdgt; lt;/trgt; lt;/c:forEachgt; lt;/tbodygt; lt;/tablegt; lt;a
href=checkout onclick=checkout()gt;checkoutlt;/agt; lt;a href=delete
onclick=delete()gt;Deletelt;/agt; /code/pre

No comments:

Post a Comment