There is a design:
<script> //здесь необходимо задать стиль элементу div к примеру color:#fff </script> <div class="some_div"></div>
PS You are kindly requested to refrain from answering the type, it is better to change the structure, so no one does. variants of type document.write('<style></style>');
and $(document).ready()
also not suitable.
change_div(".some_div")
as a selector in the parameters, and all divs with the necessary selector acquire certain properties. it is possible to prescribe and load styles, but I would like to find an elegant solution based on the principle oflive
in jQuery. - FLK