Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).on('click', '.search-delivery > button',function(){
- var search = $('.search-delivery > input').val();
- $('.country_name').each(function(){
- console.log('test');
- if($(this).text().trim() == search.trim()) {
- var top_pos = $(this).offsetTop;
- $("body").animate({
- scrollTop: top_pos
- }, 400);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement