-2
在这个脚本中,我该如何添加一个alt
标记,其值与本例中的“NikeAir 32”相同?自动命名alt标记
<script>
function test_options_rendered(){
$('.test_option_value').each(function(){
if(!$(this).parent().hasClass("conditional")){
$(this).find('input:radio').first().prop("checked", true);
// $(".test_radio_option :input:first").prop("checked", true);
}
});
$('.test_radio_option:contains("Nike Air32")').append('<img class="option_img" src="https://image.png">');
}
</script>
你的问题和来源对我没有任何意义。你有什么想要做的? – eisbehr
你会做'$('。test_radio_option:contains(“Nike Air32”)')。append('');' –