I want to apply the more css class directly to inline style tag dynamically, I tried like below not working (In my situation I can't able to create a class) It is working for tag but not work for
    <script type='text/javascript'>
    function CommonClassCreateFunction()
    {
      var css_cls="{color: #900;margin-top:20px;}:hover {margin-top:0px;}";
      return css_cls;
    }
    </script>
    -----
    -----
    <script type='text/javascript'>
    var css_cls=CommonClassCreateFunction();
    $('#iiffrraammee').contents().find('#newtxtid').css(css_cls);
    </script>
-----
-----
<textarea class="expand close" id="newtxtid" name="ta" wrap="hard" spellcheck="false"></textarea>
 
     
     
     
    