I want to compare 2 values under some conditions.
If $(".value1").text() and $(".value2").text() start with "v", then check whether
number of $(".value1").length (in this case 0.1)) < $(".value1").length (in this case 0.4)
<div class="value1">v0.1</div>
<div class="value2">v0.4</div>
First, I want to check whether the value of the div starts with "v", then I want to compare the value after the "v".
How would I do that and how would the syntax look like?
Your help is much appreciated.
A working example: http://jsfiddle.net/Kncf4/