I have a dynamic table where the weather of locations selected from the options need to display everytime the button ‘Submit’ is clicked. I am using the script ‘weatherwidget.io’ for showing the weather details.
The ‘iframe’ in the link loads only for the first time the places are selected and ‘submit’ is clicked. The second time it only shows the ‘WEATHER’ href link without the iframe.
I tried the below code to reload the ‘iframe’ everytime ‘submit’ is clicked, but it doesnt work.
Hi DaveMaxwell. Thanks for your quick reply, much appreciated insight. My only concern is that the <a class=“weatherwidget-io” href="https://forecast7.com/en/' is applying to the “Weather” in the ‘td’ making it a href link to the correct corresponding destination. So I believe that the if-statement seems to be working, but the second time the iframe in the link isn’t launching. (Please check the jsfiddle). Many Thanks again, awaiting your reply.
Quick note, you’ve got a bug in your html in your values in the select box. Doesn’t affect your problem but was confusing at first. The option value is wrong after Chicago.
But back to your problem…I don’t see anything blatantly obvious, even though the output is glaringly different the second time around. My gut tells me it’s gotta be something in this script added for the widget, but I don’t see anything glaring in it.