Hey all!
I am trying to do a very simple task but I cannot seem to figure it out. I am trying to write a function that will remove a link without removing the text associated with it. Here are the specifics:
I am trying to remove everything EXCEPT the text "Categories", I just want to remove the href tag. I would even be willing to rename the title "Categories". I just want to link gone.
I am very new to Jquery and so far I have an idea of what to do.. this is what i got:
- <div id="remlink">
- </div>
- <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function RemSClink() {
- \\CODE I DON'T QUITE KNOW
- }
- $(document).ready(function() {
- $("#remlink").remove(RemSClink());
- });
- </script>
If it helps, the offending link is in a div called <div id="mw-normal-catlinks"> BUT there is other content in there I do not want erased!
Thanks so much!