Using the val method instead of prop so that the set method get hit (if present; see jQuery's val implementation for further details).