how to exlude id if it is a part of a class in a selection?
Hello,
i'm trying to exclude one identifier from a part of a class that i do a selection on, i cannot find how this is possible and if it is possible.
my code:
- <ul id="nav_menu_top" class="horizontaal_menu">
- <li id="nav_home"><a href="#">Home</a></li>
- <li id="nav_consult"><a href="#">Consulantancy</a></li>
- <li id="nav_services" ><a href="#">services</a></li>
- <li id="nav_foto" ><a href="#">fotografie</a></li>
- <li id="nav_overons" ><a href="#">Over ons</a></li>
- </ul>
jquery code: with the solution i thought was correct (bot its not working).
- $(".horizontaal_menu:not('#nav_home'), .menu_vert").click (function() {
- $(".menu_vert").fadeOut("normal");
- $("#tempcenter").css ("display", "none");
- $("#center, #left").css ("display", "inline");
- /*$.post('body.php', {}, function(data) {alert(data)});*/
- $("#center").load('body.php');
- });
Thank you