I need to check if the body has a certain class (may have several different classes), and if it does get it, and split it into an array.
eg:
<body class="someclass s_windows_8">
So far I have just the class check working:
var software = [];
if($("body").is('body[class*=" s_"]')) {
software["name"] = //windows out of s_windows_8
software["version"] = //8 out of s_windows_8
}
Hope that makes sense.
Thanks