div가 시작되어 숨겨진 것으로 시작하고 버튼을 클릭하면 나타납니다. 이 사업부의 다른 버튼이며, onclick 이벤트는이 함수를 호출자바 스크립트 함수는 한 줄만 실행합니다.
function popuppage2OK() {
alert("you clicked ok!");
var x = new Object();
x.name = $("#boxforname").val(); //this is a text input
x.option = $("#boxforoption").val();//this is a text input
alert("hiding newfactorpage2");
$("#popupform").hide(); //this is a div containing the text inputs and the button with the onlcick event that calls this function
alert("popupform hidden");
displaystuff(); //another function ive written that needs to be called
alert("this is after the display attempt");
}
내 probelm 실행할 것 같다 유일한 라인 사업부를 숨길 수있는 선 것입니다. 경고 상자가 나타나지 않고 displaystuff() 함수가 실행되지 않지만 div는 다시 숨겨집니다. 코드 줄이 왜 건너 뛰는 지에 대한 생각은 없습니까?
: 페이지가로드가 완료 후에 당신이 뭔가를 할 수 JQuery와의 있도록
당신은 그것을해야합니까? 다른 브라우저를 사용하십시오. –
우리는 자바 스크립트를 더 볼 수 있습니까? 이 함수는 괜찮아 보이지만 Eric이 문제가 다른 곳에 존재한다고 말했듯이 함수를 입력하기 전까지는 그 자체가 나타나지 않는다. – rlemon
자바 스크립트 콘솔에 오류가 표시됩니까? – JJJ