title: passing jquery selector as a parameter
body: <p><a href="https://i.stack.imgur.com/71TTV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/71TTV.png" alt="enter image description here"></a>I Want to pass a jquery selector to a function but it didn't work , what is the problem ? </p>
  
  <pre><code>$(".university .seeMap").one("click",function(){
      HideMap($(this));
  });
  function ShowMap(element){
      $(element).html('See The Map &amp;nbsp; &lt;i class="zmdi zmdi-pin"&gt;&lt;/i&gt;');
      $(element).one("click",HideMap(element));
      $(element).next(".university-map").fadeOutn();
  }
  function HideMap(element){
      $(element).html('Hide The Map &amp;nbsp; &lt;i class="zmdi zmdi-pin"&gt;&lt;/i&gt;');
      $(element).one("click",ShowMap(element));
      $(element).next(".university-map").fadeIn();
  }
  </code></pre>