Skip to content
Advertisement

How to stop function if input is invalid?

I’m trying to get a value of several URL input and if value of URL isn’t not valid, I just want to animate input element and stop everything.

Is there any way to do it?

JavaScript

Advertisement

Answer

You need to let outside of your each loop know the condition of the contents.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement