EDITABLE CODE:
LiveDemo:jQuery - Get values of properties using prop() Method
Note:The parameter of the method removeAttr() is an attribute