javascript 选择Box Snippet以便稍后查看
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript 选择Box Snippet以便稍后查看相关的知识,希望对你有一定的参考价值。
if(nextQuery('body.nextProductDetail').has('.nextAttributeLabel label:contains("Personalized")')){
function ourSelect() {
nextQuery('.nextAttributeLabel label:contains("Personalized")').closest('tr').find('select').addClass('ourSelect');
nextQuery('.nextWriteInLabel label:contains("Enter Text")').closest('tr').addClass('ourWriteIn');
nextQuery('.ourSelect').change(function() {
showHide()
});
}
function showHide() {
var ourValue = nextQuery('.ourSelect').find("option:selected").text();
if (ourValue == "Yes" ) {
nextQuery('.ourWriteIn .labelSubText').text('REQUIRED for Personalization');
nextQuery('.ourWriteIn').show();
} else {
nextQuery('.ourWriteIn').hide();
}
}
ourSelect();
showHide();
setInterval( function(){ourSelect();} , 500 );
}
以上是关于javascript 选择Box Snippet以便稍后查看的主要内容,如果未能解决你的问题,请参考以下文章
javascript SVG Draggable GSAP Snippet
javascript React Axios Snippet
javascript Mutation Observer Snippet
javascript 事件snippet.js
javascript 事件snippet.js
[javascript]Three parts of javascript code snippet