selectbox with integer as value now works

jQuery $().val() returns a string even if the value in the input element is an integer. With this change no error will display in this case.