开发者

Colorbox not closing in ie and giving an error

I am using a colorbox to get value of a textbox. I have this function in the file:

jQuery(document).ready(function(){
        jQuery(".example5").colorbox({              
    onComplete:function(){ document.getElementById('question').value;}
    });
});

where question is the textbox id name.

Than i have php code which check who to send question to so if array is empty i j开发者_C百科ust use exit to exit out of the code. Here is the code for that:

if($array != ""){$f_array = explode(",", $array);}
else
{
 echo 'You have no one to ask questions.';  
 exit;
}

This code is giving me two problems i cant figure out. One the colorbox that shows the message 'You have no one to ask questions.' I can close this is firefox but it does not close in IE. Second i get this error in firefox:

document.getElementById("question1") is null
[Break On This Error] onComplete:function(){ document.getElementById('question1').value;}

I been trying to figure this out but cant. I will really appreciate the help.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜