this is my code:
$(document).ready(function() {
$('td').empty();
getWeather();
});
$('.data').change(function() {
$('td').empty();
getWeather();
});
How can I optimize it?
I was thinking of using “OR”, but I couldn’t fit it anywhere.
Thanks in advance.
What about…