Source Code:
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt($.browser.version, 10)<7)
Edited - sorry, posted wrong code.
What's the correct formation of the above, to identfiy browsers less than ie9?
thanks
Edit -
Here's the reason for the code above:
if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) {
hidden = document.createElement('<input type="hidden" name="' + atName + '" value="' + attrId + '"/>');
} else {
hidden = document.createElement("input");
it's for the createElement issue in anything lower than IE9
Additionally, I would love to rewrite the entire function, but due to scope I am unable to rewrite the file until it's included in a project - so I need to rewrite this one line to work correctly.