trouble excluding child
trouble excluding child
Hi,
I'm doing a slidetoggle button on a p tag, but inside that p tag contains an a tag, I tried to exclude it by using the :not function, but it won't work. did I do something wrong in the html or css, or am I just wrong?
- <style>
- .alignright
- {
- float: right;
- }
- </style>
- <p class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-top" style="font-weight:bold; color:#090;">
- <span class="alignright">Plate#: dsa-231</span>
- Net Premium: Blah Blah Blah
- <a href="<?php echo base_url();?>index.php/memboards/vdetails/<?php echo $list['VID'];?>" style="color:#006; display:inline;" class="link">(See Details)</a>
- </p>
Here is the jquery code
- <script type="text/javascript">
- $(function()
- {
- $('.ui-accordion-header, :not(div > .link))').click(function()
- {
- $(this).next('.ui-accordion-content').slideToggle();
- });
- });
- </script>
Thanks