Enums with jQuery?
You would have to duplicate the enum in JavaScript like so:
var myEnum = {
OneValue: 2,
AnotherValue: 3
};
then you can use it like this:
this.value === myEnum.OneValue || this.value === myEnum.AnotherValue;