Searching For- Gooner In-all Categoriesmovies O... -
function displayResults(results) { const resultsDiv = document.getElementById('searchResults'); resultsDiv.innerHTML = ''; // Clear previous results
function searchContent(searchTerm, category) { // For demonstration, assume we have a function to fetch data from a backend or API // Here, we'll simulate the search results const results = [ {title: "Movie 1", description: "This is movie 1 about gooner"}, {title: "Movie 2", description: "This is movie 2 related to gooner"}, ]; Searching for- gooner in-All CategoriesMovies O...
button[type="submit"] { height: 30px; font-size: 18px; background-color: #4CAF50; color: white; border: none; cursor: pointer; } resultsDiv.innerHTML = ''
#searchInput { width: 50%; height: 30px; font-size: 18px; padding: 10px; } category) { // For demonstration
header { background-color: #333; color: white; padding: 20px; text-align: center; }
<script src="script.js"></script> </body> </html> body { font-family: Arial, sans-serif; margin: 0; padding: 0; }