rmm5t/jquery-flexselect — pull request #16 by virgofx (2012-03-07 20:38:54+00:00)
Title: Added "allowMismatchBlank" configuration option.

The allowMismatchBlank will allow a mismatch only if the value is blank.

This is useful for forms where the flexselect element will remain visible after submission or for re-displaying a form with a user's selected choice.

For example:
1) A flexselect for the field [ Occupation ].
2) User enters [ Engineer ] and submits form.
3) User revisits page where the form displays the current selection [ Occupation ] = [ Engineer ].
4) User is no longer employed and wants to clear this value and clears/backspaces content.

Upon blur, the previous value would be set therefore preventing user from clearing.

This property is set to true by default because this is probably the most common use case. However, for fields that should never be changed (for example a "username" field), the opposite may be true and this value can be set to false.