Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

if null

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
acroporax
Posts: 42
Joined: Thu Apr 21, 2022 3:04 pm
Has thanked: 5 times
Been thanked: 1 time

if null

Unread post by acroporax »

Hi All,

This code did not work. Why? Thanks for answers..

if( $('#TL')==null)

{$('#TL').val($('#KurHesapla').val()).change();}

if( $('#USD')==null )
{ $('#USD').val($('#KurHesapla2').val()).change();}
kev1n
nuBuilder Team
Posts: 4581
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 536 times
Contact:

Re: if null

Unread post by kev1n »

Check for empty string like

Code: Select all

 if ($('#TL').val() == '') { ... }
Post Reply