IF id exists, hide other id's
looking for a bit of help here...I seem to be running in circles right now.
I am trying to write a script that will search the page for a certain ID...if said ID exists, then I want to hide a few other IDs. this is what I have so far.
- <script type="text/javascript">
- $(document).ready(function(){
- if($("#articleGatingWrapper")) {
- $("#lxTdivRating").hide();
- $("#commentWrapper").hide();
- $(".bottomArticleTools").hide();
- $("p.addComment").hide();
- });
- });
- </script>
thank you in advance for any help.
-Jeff