Hi,
I would like an event to trigger a change the style of all the elements that
belong to some CSS class.
I know it is possible to change the class of an element, for example with:
<script language=javasc ript>
function changeclass()
{document.getEl ementById(id).c lassName="class _id";}
</script>
<input type=checkbox onclick="javasc ript:changeclas s()">
But this can only change one element. I would like to change the
"property:l ist" pairs of a CSS class, so that changes can apply to more
than one element.
Is it possible with javascript?
I would like an event to trigger a change the style of all the elements that
belong to some CSS class.
I know it is possible to change the class of an element, for example with:
<script language=javasc ript>
function changeclass()
{document.getEl ementById(id).c lassName="class _id";}
</script>
<input type=checkbox onclick="javasc ript:changeclas s()">
But this can only change one element. I would like to change the
"property:l ist" pairs of a CSS class, so that changes can apply to more
than one element.
Is it possible with javascript?
Comment