0
这是我的页面:https://3brow.com/loja 这里是我已经尝试过的所有代码。 所有试图用$(文件)。就绪(函数()而且,没有工作为什么jquery不能在wordpress的小工具中工作?
$('#select2-select-pa_cor-container:contains("Todoscores")').text('another text');
$('#select2-select-pa_cor-container').each(function() {
var text = $(this).text();
$(this).text(text.replace('TodosCores', 'another text'));
});
$("#select2-select-pa_cor-container p:contains('TodosCores')").html("another text");
$('#select2-select-pa_cor-container:contains("TodosCores")').text('another text');
$('#select2-select-pa_cor-container').html($(this).html().replace('TodosCores','another text'));
$('#select2-select-pa_cor-container').each(function() {
var text = $(this).html();
$(this).html(text.replace('TodosCores', 'another text'));
});
$("#select2-select-pa_cor-container").replaceWith("<span>another text</span>");
我必须使用:“之前”到“工作”“显示无”
我尝试更改另一个div的占位符,并使用相同的代码尝试使用另一个div并开始工作我正在使用wordpress,并且这两个功能都无法使用widgets 任何人都可以解释为什么在小部件中代码不起作用,我该如何“修复”?
是的。我只是忘了放在那里。有趣的是,我有另一个工作Jquery的小部件。 – Robert