WordPress.org

Support

Support » How-To and Troubleshooting » jquery selector

jquery selector

  • i’m developing a plugin for a site but selectors don’t work:

    THIS WORK

    jQuery(document).click(function(){
    jQuery('.box').hide();
    });

    THIS DOESN’T WORK

    jQuery('.box').click(function(){
    jQuery(this).css('border',"3px solid red");
    });

    that is scripts works only with document selector. I don’t know why. Can someone help me?

  • The topic ‘jquery selector’ is closed to new replies.
Skip to toolbar