Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Toggling SPDisplayRelatedInfo content

$
0
0
I'm attempting to toggle SPDisplayRelatedInfo content. Calling the function works nicely and displays as I would like, however I am unable to hide/remove the <div id="SPDisplayRelatedInfo_columnname"> block when I change my toggle control, which is driven by a option list (e.g. option A & B will display the related info, option C should not)

I am using an if/else clause to evaluate the selected option and that element works, i.e. the correct conditional code fires and related info changes, but with my Option C 'else' clause, despite using a jquery selector which I have tested and works, when I try to use this selector with the jquery .fadeOut()/.remove() methods the SPDisplayRelatedInfo block is automatically reinserted after the .fadeOut()/.remove() method.

I can understand that the SPDisplayRelatedInfo function would still pull in related data for my Option C, but cannot understand why it's not allowing me to hide the div.

Is it my code or a specific design feature?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>