Is there a way to extract the names of all classes defined in an internal stylesheet using jQuery? For example, if I have the following internal stylesheet:
<style id="custstyle" type="text/css">
.column{
font-size:13px;
font-family:arial, helvetica, verdana, sans-serif;
font-weight:normal;
color:rgb(221, 221, 221);
font-size:13px;
font-family:arial, helvetica, verdana, sans-serif;
font-weight:normal;
color:rgb(221, 221, 221);
}
</style>
and calling $('#custstyle').html()
or $('#custstyle').text()
will return the entire CSS code as shown below:
.column{
font-size:13px;
font-family:arial, helvetica, verdana, sans-serif;
font-weight:normal;
color:rgb(221, 221, 221);
font-size:13px;
font-family:arial, helvetica, verdana, sans-serif;
font-weight:normal;
color:rgb(221, 221, 221);
}
But what I actually want is to retrieve only the class name .column
...