On my webpage I need to scroll on specific area. As there is tab I used this code but unable to achieve. I have tried this code for scrolling page on the Div area:
<a onclick="$('a[href=\'#tab-review\']').trigger('click');">0 reviews</a>
Use hash for meta-character :
<a onclick="$('a[href=\'\\#tab-review\']').trigger('click');">0 reviews</a>
Or, remove the hash in your link and use like this:
<a onclick="$('a[href=\'tab-review\']').trigger('click');">0 reviews</a>
<a href="#" id="reviewAnchor">0 reviews</a>
$("#reviewAnchor").click(function() {
$("a[href='#tab-review']").trigger('click');
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.