2011-07-01 6 views
0

저는 함수에서 $ .post를 사용하고 있으며, $는 밑줄 것입니다. 이것은 iframe의 onchange 이벤트에 있습니다. 이 오류를 추측하는 이유는 무엇입니까?

script type="text/javascript"> 
function photoupdate(id, name, value, chk) 
{ 
    if(chk==false) 
    { 
     value=""; 
    } 
    $.post('photoupdate.php', {id: id, name: name, value: value}) 
}; 
</script> 


<input type="radio" name="PrimaryPhoto" id="'.$recordid.'" value="Yes" '.$checked.' 
style="position:relative; left:-20px; bottom:5px; margin:0px" 
onchange="photoupdate(this.id, this.name, this.value, this.checked)"/> 

답변

0

iframe 내용에는 고유 한 html/head/script src = jquery.js 및 기타 등이 있어야합니다.