I have below code :

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwi GgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>


.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;

/* Style the buttons that are used to open the tab content */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;

/* Change background color of buttons on hover */
.tab button:hover {
background-color: #ddd;

/* Create an active/current tablink class */
.tab button.active {
background-color: #ccc;

/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Tour</h1>
<p class="lead">There is many places avialable here.</p>
<nav class="navbar navbar-dark bg-dark">
<span id="slide" class="navbar-toggler-icon" title="Click me for toggle efect" style="color: white"></span>

<input id="auto" class="form-control mr-sm-4" type="text" placeholder="Search Places" aria-label="Search" style="width: 500px; margin-right: 10%!important;">
<button id="search" class="btn btn-outline-success my-2 my-sm-0" type="submit" title="Click me for searched place image" style="margin-left: -23%">Search</button>

<div id="tabs">
<li class="li"><a href="#tabs-1" id="1">London</a></li>
<li class="li"><a href="#tabs-2" id="2">Paris</a></li>
<li class="li"><a href="#tabs-3" id="3">Tokyo</a></li>
<li class="li"><a href="#tabs-4" id="4">Delhi</a></li>
<div id="tabs-1">
<h2 id="1">London</h2>
<p>London is the capital of UK.</p>
<div id="tabs-2">
<h2 id="2">Paris</h2>
<p>Paris is the capital of France.</p>
<div id="tabs-3">
<h2 id="3">Tokyo</h2>
<p>Tokyo is the capital of Japan.</p>
<div id="tabs-4">
<h2 id="4">Delhi</h2>
<p>Delhi is the capital of India.</p>
<script src="26-02-2020jquery.js"></script>


and Jquery is :

//toggle button

//for display tabs
$( function() {
$( "#tabs" ).tabs();
} );

var array = ["London", "Paris", "Tokyo", "Delhi"];
source : array

Now When i search "paris" and click the search button then paris tab should be active.

sorry for dirty coding

Any help would be appreciated.