How to perform click event on multiple elements-Jquery -


i know there several places question might have answered , followed same way mentioned in 1 of answers, looks click event not getting triggered whatsoever.

$("#overview").add("a.main").click(function(){     location.reload(true); }); 

html:

<div>     <a href= "index.php" id="overview"> </div> <a class="main" href="#main.php"> 

is im trying do, click not getting triggered..

if just:

$("#overview").click(function(){     location.reload(true); }); 

it works fine..im missing here..any ideas please?? thanks!


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -