I am trying to compare the values of two input fields with jQuery. However, it does seem correct but it doesn\'t alert when one of the values is larger.
alert
<
.val() returns a string. You should use parseInt or parseFloat.
.val()
parseInt
parseFloat