Using the val method instead of prop so that the set method gets hit

see jQuery's val implementation for further details