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)
- <script type="text/javascript">
- function gamenow(gameid)
- {
- $(gameid).css("opacity","0");
- $(".game").slideUp("slow");
- $(gameid).slideDown("slow");
- $(gameid).toggle();
- $(gameid).fadeTo("slow",1);
- }
- </script>