开发者

Colorbox not closing in ie and giving an error

开发者 https://www.devze.com 2023-03-19 16:38 出处:网络
I am using a colorbox to get value of a textbox. I have this function in the file: jQuery(document).ready(function(){

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

精彩评论

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

关注公众号