Used .prop instead of .attr
Updates