Recently, I stumbled upon this intriguing demo showcasing how to search for an artist using the Spotify API. However, despite several attempts, I have been unable to make it function properly. Can anyone provide any tips or guidance on making this work successfully?
Below is a snippet of the HTML code used in the demo:
<div class="container">
<h1>Search for an Artist</h1>
<p>Simply enter an artist name and click on "Search". You can then click on any album from the results to enjoy a 30-second preview of its first track.</p>
<form id="search-form">
<input type="text" id="query" value="" class="form-control" placeholder="Enter Artist Name Here"/>
<input type="submit" id="search" class="btn btn-primary" value="Search" />
</form>
<div id="results"></div>