0

What is the function of (method = value) on the input element and what does it mean (return true and return false)

https://code.sololearn.com/Wsfk846134jd/?ref=app

30th Aug 2020, 3:59 AM
Danang Setio Arifin
Danang Setio Arifin - avatar
2 ответов
+ 1
Return true allow the action to take place and return false decline the action take place. In both the cases when user enter same or not same data false is returned but when the data is equal before returning false true is returned as the condition became true so true comes in action
30th Aug 2020, 4:59 AM
Ayush Kumar
Ayush Kumar - avatar
0
Then what is the use of (element.value) in js
30th Aug 2020, 5:35 AM
Danang Setio Arifin
Danang Setio Arifin - avatar