I have a form with 2 fields:
(1) ref
<--- to a lookup_table
(2) label
<--- autofill column
MySQL query works fine.
ew_Ajax works fine.
I can autofill field label
by selecting value form ref
.
My problem:
When I set ref
to default (set it back to "Please Select" option from dropdown menu), I need to get an empty label
.
How to reset the autofill value to be empty?
I try !== null , !== "", with no success.}
var result = ew_Ajax(bla..bla..bla..)
if (result === null) {$label_value = "" ;} <--- not working
if (result === "") {$label_value = "" ;} <--- not working
Thanks.