Trigger a .Click on an $(\'#element\')


/ Published in: jQuery
Save to your folder(s)

Trigger a .Click when you hover over an $(\'#element\')


Copy this code and paste it in your HTML
  1. $('#other').click(function() {
  2. $('#target').click();
  3. });
  4.  
  5. OR
  6.  
  7. $('.something').hover(function() {
  8. $('#element').trigger('click')
  9. });

URL: http://api.jquery.com/click/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.