title: How to get the script interacting with a particular HTML element in a web page?
body: <p>I'm trying to create a customized select drop down menu where suggestions are given when a user enters text in an input box.</p>
  
  <p>This is the site from where I'm trying to extract the javascript code: <a href="http://www.redbus.in/" rel="nofollow noreferrer">http://www.redbus.in/</a></p>
  
  <p>Here's the select drop down working in action:</p>
  
  <p><img src="https://i.stack.imgur.com/AbpJX.png" alt="enter image description here"></p>
  
  <p>I tried accessing the event listener for the corresponding input box through dev tools, but was unable to get the relevant script.</p>
  
  <p>How can I get the corresponding script in this case? Are there any tricks/specific methods to get the script interacting with a particular HTML element?</p>
  
  <p>PS: I'm a beginner in web development.</p>