WordPress.org

Ready to get started?Download WordPress

Forums

jquery selector (1 post)

  1. adremasu
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic