$("#btnOK").click(function(){
    parent.$("#res"+(d)).load("Customise.php #uni", "PID="+$("#P option:selected").val());
    parent.$.fancybox.close(function(){
    $("#res"+(d-1)+" a#p").fancybox({
            'transitionIn'  : 'elastic',
            'transitionOut' : 'elastic',
            'width':400,
            'height':300,
            'overlayOpacity'    : 0.5,
            'type'              : 'iframe'
        });
    });
});
ボタンをクリックした後。コールバック関数を使用して、動作しない#pを再初期化しますか?解決策はありますか?
        <div class="cell">
    <label id="pID">PID</label> <br /> <input type="text" id="txtPID" size="3" value="<? if(is_numeric($pID)) print("$pID"); ?>"/>   
    <a href="SelectP.html" id="p"><img src="Images/P.png" name="SelectP_button" id="SelectP_button" /></a>
    </div>