I have an ASP.NET MVC2 application that contains a partial view that allows the user to set a variety of properties on a collection of objects. These are currently done using HTML input controls such as the textbox and dropdown list. I am using using out-of-the-box model binding to submit the user-entered values to the server via a form post.
For aesthetic reasons I need to replace all of my dropdown lists with hand-rolled alternatives that will display an icon for each item in the list, and have various rollover effects.
So I am now reviewing my options for how the selected values from these items will be included in the form post. The obvious solution seems to be to use hidden HTML controls, and use jQuery to set the value selected in a custom dropdown into the corresponding control.
Can anyone suggest a simpler/cleaner alternative to model binding in this instance?