$(function() {
//Indicate here the version of your forum.
var version = "phpbb2";
if(version.toLowerCase() == "phpbb2"){
$(".postdetails img[title='Premium']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xy");
$(".postdetails img[title='Junior']").closest('.postdetails').parent('td').next('td').addClass("fa_postbody_xx");
}else if(version.toLowerCase() == "phpbb3"){
$(".postprofile img[title='Male']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xy");
$(".postprofile img[title='Female']").closest('.postprofile').prev('.postbody').addClass("fa_postbody_xx");
}else if(version.toLowerCase() == "punbb"){
$(".user-info img[title='Male']").closest('.postmain').addClass("fa_postbody_xy");
$(".user-info img[title='Female']").closest('.postmain').addClass("fa_postbody_xx");
}else if(version.toLowerCase() == "invision"){
$(".postprofile img[title='Male']").closest('.post-container').addClass("fa_postbody_xy");
$(".postprofile img[title='Female']").closest('.post-container').addClass("fa_postbody_xx");
}
});
それは私が取り組んでいるコードです。これに対して私がやりたいことは、.postdetails img[ id like to go to this ul class .profile_field_list li[text="premium"] の代わりにそうすることです
これは可能ですか?
<ul class="profile_field_list">
<li>Premium Member</li>
</ul>
そして、それは私が見つけて、コードでそれが言うことをしたいhtmlです...