Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums 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: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: if null

Unread post by kev1n »

Check for empty string like

Code: Select all

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