I use jQuery to get the browser version as follows:
var x = $.browser.version;
I get a line like this: 1.9.1.1
Now, I want to make an assessment, so if x is> = 1.9.1, then do something. Unfortunately, with a few decimal points, I cannot execute parseFloat (), because it converts 1.9.1.1 to 1.9, and the if rating will be consistent with version 1.9.0 (which I don't want).
Has anyone figured out a way to make the number of versions (with a few decimal places) into something that can be used as a number for evaluation (or some other way to accomplish what I'm trying to do here)?
Thanks -
source
share