jQuery로 변환하고 싶지만 행운이없는 다음 JavaScript 코드가 있습니다.자바 스크립트를 jQuery로 변환
var mySplitResult = xvotesString[htmlid].split('~');
target3 = document.getElementById ('xvote-' + htmlid);
target3.style.width = mySplitResult[0] + 'px';
if (target4 = document.getElementById ('mnma-' + htmlid));
target4.innerHTML = mySplitResult[1];;
if (target5 = document.getElementById ('mnmb-' + htmlid));
target5.innerHTML = mySplitResult[2];;
if (target6 = document.getElementById ('mnmc-' + htmlid));
target6.style.display='none';;
if (target6 = document.getElementById ('mnmd-' + htmlid));
target6.style.display='block';
target7 = document.getElementById ('xvotes-' + htmlid);
target7.className = 'star-rating-noh';
모든 도움을 주시면 감사하겠습니다.
내 첫 추천을 읽기 쉽게하기 위해 서버 태그 외부에서'echo''d 자바 스크립트 코드를 모두 이동하는 것입니다. – Aaron
Yikes! ________ –
당신이 이미 시도한 것을 게시하면 우리는 무엇이 잘못되었는지 말할 수 있기 때문에 더 좋을 것입니다 ... –