Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript :before css change with jQuery?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37422
    schart
    Participant

    So I think it would be easier to understand if you just visit the jsfiddle link, but first, my goal is to be able to change the css of “.textarea:before” using jquery .click
    http://jsfiddle.net/UQsKh/

    #100316
    TheDoc
    Member

    You can’t directly target it with jQuery because it’s technically not even a part of the DOM.

    Some people have used jQuery to add classes and then have the CSS change based on those classes.

    #100323
    xpy
    Participant

    @schart this looks better :P

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.