I have a form that looks like the following mock-up (photoshopped from Facebook) for our Messages view on our ASP.NET MVC site.
I'm looking to get the "Mark as Unread" and "Delete" functionality working for a form that looks like this. I'm trying to figure out how I can do this with html forms.
How do I make hitting the "Mark as Unread" submit to one form url, and "Delete" submit the same form to a different url?
If you hit "Mark as Unread", I'd like it to submit the form to "/Messages/MarkUnread" and if it is the "Delete" button, I'd like it to submit the form to "/Messages/Delete".
I'd like to get this working without javascript, and once it is I'll add the jQuery forms plugin so it will do an ajax submit if JS is enabled, otherwise it will do a normal form post.