Use prop() instead of attr() in order to obtain option value

It fixes compatibility with jQuery 1.9.1 for options with no 'value'
property.