Using the # sign in a function

Using the # sign in a function

Is it possible to have the # sign somehow next to "gameid" in the function? It's triggered through a "onclick" link.

Right now Safari and Chrome don't need the # sign but Firefox does. (not sure about IE)

  1. <script type="text/javascript">
  2. function gamenow(gameid)
  3. {
  4.    $(gameid).css("opacity","0");
  5.    $(".game").slideUp("slow");
  6.    $(gameid).slideDown("slow");
  7.    $(gameid).toggle();
  8.    $(gameid).fadeTo("slow",1);
  9. }
  10. </script>