1
많은 의견이있는 페이지가 있습니다. 다음과 같이Jquery를 사용하여 value를 image로 바꾸시겠습니까?
코드 구조는 다음과 같습니다
- 각 '등급 수준의'클래스에서 값을 가져옵니다 :
+ <li id="li-comment-65" class="comment even thread-odd thread-alt depth-1"> <div class="comment-body"> <div id="comment-65"> <div class="comment-author vcard"> <img height="30" width="30" href="" alt="" /> <cite class="fn">keith</cite> </div> <div class="comment-meta commentmetadata"> <a href="#">June 16, 2009 at 10:21 pm</a> </div> <div id="rating-65" class="rating-class">Excellent</div> <p>Hiya</p> </div> </div> </li>
는 내가 뭘 원하는 다음이다. . 가 (5 개 값의 최대있을 것입니다 :.... 우수한 B 매우 좋음 다 좋은 D 불량 전자 미흡
- 평가 == '우수'경우 - 5 성급 이미지를 표시하고 평가 == '매우 좋음'경우 '우수'텍스트
- 을 제거 - 4 성급 이미지를 표시하고 '매우 좋음'텍스트
- 를 제거 ...
- ...
- 등
이렇게하기가 어렵습니까?
파올로 감사합니다. 진심으로 당신의 친절과 도움에 감사드립니다! –
당신은 가장 환영합니다. –