Issue #2372851 by coderdan: Switched from .attr('value') to .val() method for retrieving select box value.