In this code i have checkboxes for each item that give user ability to delete multiple items at once, but if the user press the remove button without checking any item it gives an error :
1) can i check this before sending to controller and gives an alert to user or it should be done in controller ?
2) if i want to add another method for editing multiple items at once, is it possible to this in this form ? i mean this is possible to have different actions for one form ?
I'm not sure what exactly you'd like to for your second question. It's possible to have multiple forms on a page, and you could have each for submit via Ajax for a rich multiple-item edit experience. It's also theoretically possible to modify the attributes of the form itself (such as the URL you're posting to), although you should have an extremely compelling argument for doing something like that before you walk that path.
Thanks for your reply, for the second question what i am looking is something similar to wordpress (if you checked it), for example in edit posts page you can check multiple items and the select an action from a drop down list, delete edit , ... thats what i want to know how can it built thnx again
As with any validation, you should do it in the controller to ensure nothing bad happens.