Get the content of an input? [duplicate]

I have a question:

How do I get the exact content of an input. I have two inputs: type number. Now I want to get the numbers out of the two inputs and check which one is higher. I know how to check which one is higher. I just need to get the content of the inputs. Please tell me an easy way.