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


You need to login to view comments.