change background-color style of Fieldset dynamically

Hi,

Is there a method to get item object of fieldset ?
I want to change background-color style of Fieldset dynamically, How can i do that ?

Thank You.

Hi
Try something like this:

document.getElementsByClassName("fs_legend")[0].style.color = "#FF0000"

[0] - if you have one fieldset. In this case you need to know the index of the changed fieldset

Thank you Darya

You are welcome!