Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClick events not targeting generated elements #28

Closed
yetimade opened this issue Sep 21, 2011 · 0 comments
Closed

onClick events not targeting generated elements #28

yetimade opened this issue Sep 21, 2011 · 0 comments

Comments

@yetimade
Copy link

Hey There! First off, this plugin is awesome.

However, I'm noticing that for some reason I can't target the

  • 's created by by dropkick, associated classes or any of the elements that it's overwriting using the onClick(); event in Jquery.

    Here's what it looks like:

    • PICK A PRINT
    • Giclee Print
    • Screen Print

    and here's my script:

    <script type="text/javascript">
         $(document).ready(function() {
     $('.screen-price').hide();
    
      $('.screen').click(function(){
          $('.digital-price').hide();
          $('.screen-price').show();
          return false;
       });
    
       $('.digital').click(function(){
          $('.screen-price').hide();
          $('.digital-price').show();
          return false;
       });
    
       $('.add-to-cart').click(function(){
          return false;
       });              
    
        });
    
    
    </script>
    

    Not sure why it isn't hearing it; I'm not getting any errors. Any advice would be appreciated.

    Thanks!
    JC

  • Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants