p
Untitled
b
=== vs =
= is the assignment operator
your code isnt an error since variable assignment returns the value assigned, and that value is truthy
p
Thanks. But why does the trigger only work once? So if value 1 is chosen the fields hide. But if I change value 1 to value 2 the fields I want to show do not.
b
jobElementValue = 2
returns 2
2 is truthy
therefore your
else if
statement will never run
p
got it. thanks.