I have css that which follows..
<style>
.body{
width:2px;
height:3px;
}
</style>
<style>
.anotherOne{
key:value;
...........
}
</style>
and the HTML part
<div class="body"></div>
So how can i get the value inside the 'body' class on first style tag ? also i want to append data there,how can i do with this javascript and regular expressions ?? is there any other way ?
I want to get anything inside that starting with ".body{" and ending with "}"
Edit :the expected result is width:2px;
height:3px;
bodyselector.