Read (invalid) value of input

Read (invalid) value of input

Hello all,

Using JQM 1.4.2 I have a problem with inputs that require (standard/default) validation. For example if I have an

<input id="v1" type="number">

and I enter the value "12a" my input becomes invalid, which is ok. But, if I then get 

document.getElementById("v1").value()

I do not retrieve the invalid value "12a" but get an empty value instead, leading to the wrong error indication feedback to the user. Is there any way to get the actual value of the input control?

The same problem appears with type="date" etc.

Thanks,

Silvio