Hi

Thanks for your response ... tried your suggestion but it didn't make
any difference .... but that got me thinkin, and .....

Thick box takes a copy of my hidden DIV and displays it accordingly,
but this means that the ids of the DIV contents are duplicated. So my
event handler was acting on the hidden DIV and not the visible copy.
To get around this I just qualified the visible DIV with the ID of the
thickbox container ie.TB_ajaxContent.  Also had to add an inline
version of the handler as the TB_ajaxContent container doesn't exist
at page load.


                <form>
                        <div id="hiddenContent" style="display:none;">
                                <fieldset>
                                        <legend id="pcontenttoggle" 
name="pcontenttoggle" onclick="$
('#TB_ajaxContent #pcontent').slideToggle('fast');" >Title 1</legend>
                                        <div id="pcontent" name="pcontent">
                                                <input name='chk1' 
type="checkbox" id="chk1" /><br/>
                                                <input name='chk2' 
type="checkbox" id="chk2" /><br/>
                                                <input name='chk3' 
type="checkbox" id="chk3" /><br/>
                                        </div>
                                </fieldset>
                        </div>
                        <div id="visibleContent">
                                  blah blah blah
                        </div>
                </form>

If there is a better way do to this then let me know.

Thanks!


Reply via email to