I have a select which pops a modal (with blockUI) input when a select
is changed. The modal is an Ajax mini-form with an "update" and a
"cancel."

The update works great but for cancel I need to be able to roll back
the change() to the selection or else it appears from the user's
perspective that it changed. I can't figure it out without going to a
hacky hardcoded solution.

$(".myType").change(function(){
// ... installing all my stuff; everything works
// except reverting to selection before onchange
});

I've played around with $(this).attr("defaultValue") and $(this)
[0].defaultValue but the select elements appear to have no
defaultValue (in tests too).

Ideas?

Reply via email to