EDITABLE CODE:
LiveDemo:jQuery - val() Method
Note: It returns a jQuery Object, which can be used for chaining purposes