+ 6

Bug in code

Why doesn't the "blur" function work?😕 https://code.sololearn.com/Ww1toc40L6zM/?ref=app

15th Jan 2019, 8:13 AM
Solo
Solo - avatar
8 Antworten
+ 3
Vasiliy I'm sorry but I misspoke, while jQuery does have a blur() event I found that Javascript has a blur() method - https://www.w3schools.com/jsref/met_html_blur.asp And I will not make anymore assumption on the cause of the problem.
15th Jan 2019, 11:46 AM
ODLNT
ODLNT - avatar
+ 4
ODLNT Yeah i did it too ☺. But why? 😕 Why is there no conflict with other names, such as "opacity"?
15th Jan 2019, 11:10 AM
Solo
Solo - avatar
+ 4
Vasiliy The only thing I can think of is that jQuery has a blur() event and even though jQuery uses $ to avoid conflicts I still believe this to be the cause of your problem https://www.w3schools.com/jquery/jquery_ref_events.asp
15th Jan 2019, 11:17 AM
ODLNT
ODLNT - avatar
+ 4
ODLNT 👏👏👏 THANK YOU VERY MUCH for clarification and reference, this is what you need for the future. How did you find this article when solving this problem, or did you know it initially?☺
15th Jan 2019, 11:38 AM
Solo
Solo - avatar
+ 4
ODLNT Thanks again for the information on the operation of the method "blur" together with the method "focus". ☺
15th Jan 2019, 2:33 PM
Solo
Solo - avatar
+ 3
Vasiliy The appears to be a naming conflict. I changed blur() to fuzzy() and the blur button worked.
15th Jan 2019, 10:27 AM
ODLNT
ODLNT - avatar
+ 2
Vasiliy w3schools is one my goto references when dealing with web issues. So when I looked at your code I decided to search w3schools for anything on "jQuery blur", but I totally blanked out on jQuery is javascript hence the misspoke post.
15th Jan 2019, 12:02 PM
ODLNT
ODLNT - avatar
0
Good
16th Jan 2019, 12:45 AM
MaDnEsS
MaDnEsS - avatar