I have code which allows adding a class to 'style' section.
function appendCssClassToStyle(clas, prprty, val)
{
$('#myStyle').append('.' + clas + '{' + prprty + ':' + val + ';}');
}
This code adds the class many times. The problem is that I would like to be able to add a class only if it does not exist in the styles section yet. How can I do this? Thanks for help !