jquery .val() not .value

In line 180. 
It should be .val() instead of .value.

This is my first edit.
Merge pull request #5228 from kshitizsingh/patch-1

[skip ci] jquery .val() not .value