Page 1 of 1

java script code for if statement

Posted: Tue Aug 03, 2021 8:03 am
by alisoroush7
hi

what is the this if statement code in java?
if textbox = 1 then show or hide another textbox

it seems very easy!
thanks.

Re: java script code for if statement

Posted: Tue Aug 03, 2021 8:39 pm
by kirkwg
Hi,

Are you sure you want to ask this? ^^ You probably know .....

if ($('#textVar001').getValue() == '1' ) $('#textVar002').show();
else $('#textVar002').hide();

Re: java script code for if statement

Posted: Fri Aug 13, 2021 9:07 am
by mikemier
Thanks for solving this question. I also have the same case.