0

I wanted to change the css attribute of this selector::valuetochange using jquery?

example:

this is my css

#au_zip_overlay::labels

how to change the property of the 'labels' using jquery?

Thanks

emmanuel
  • 9,607
  • 10
  • 25
  • 38
  • 1
    i don't think you can change pseudo-elements like that. – Daniel A. White Feb 23 '15 at 13:52
  • Can you explain what you are trying to achieve? – atmd Feb 23 '15 at 13:54
  • Best way would be to make different classes i think and then swap out classes with $().removeClass en $().addClass. But, i'm curious to see someone knows a way to edit psuedo selectors. – Tschallacka Feb 23 '15 at 13:54
  • 1
    I don't understand exactly what you want to do, do you want to change the labels attribute value? `$("#au_zip_overlay[labels]").attr("labels", "new value")` – Daniel Feb 23 '15 at 13:55
  • I just found out that the double column ( :: )is called pseudo element in css. – Chanu Gonzales Feb 23 '15 at 14:08
  • I just found out that the double column ( :: )is called pseudo element in css. I wanted to change the property of the pseudo element labels in this css #au_zip_overlay::labels. The pseudo labels has the property text-opacity: 0; . I wanted to change to text-opacity: 1; – Chanu Gonzales Feb 23 '15 at 14:09

0 Answers0