GDGC-MET / Weather_App

A simple weather app that provides real-time weather information for any location using the OpenWeatherMap API.
https://gdgc-met.github.io/Weather_App/
MIT License
2 stars 31 forks source link

Weather App : Improved Suggestions and inputs where city names can be autofilled/autocomplete #48

Open omjadhav8830 opened 5 days ago

omjadhav8830 commented 5 days ago

This solution enhances the Weather App by adding an autocomplete feature for city names, allowing users to receive real-time suggestions as they type. It eliminates the need for a separate <ul> tag by utilizing a single <div> to display suggestions. The JavaScript function fetches matching city names from the OpenWeatherMap API and populates the <div> with clickable items. This approach simplifies the structure and styling of the suggestion list while improving user experience and interactivity within the app.

image