调用js里面的show_product_eligibility方法
<a href="#return-product-eligibility" onclick="show_product_eligibility()" class="underline">return policy</a>
使用了uikit里面的accordion方法,点击时候会展开uk-accordion-content里面的内容
<h3 class="uk-accordion-title" id="eligibility-text">RETURN PRODUCT ELIGIBILITY</h3>
<div class="uk-accordion-content">
xxxxxxxxxxxxxxxxxxxxx
</div>
function show_product_eligibility(){
$("#eligibility-text").trigger( "click" );
}
最终效果 点击第一条代码处的按钮展开uk-accordion-content里面的内容